From 743273bd381a132c272226af00381da0494e8920 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Feb 2022 15:59:22 +0200 Subject: Diagnose various misuses of library metadata protocol --- libbuild2/cc/common.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/cc/common.cxx') diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index 09a1752..ccb678c 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -320,6 +320,10 @@ namespace build2 if (pt.adhoc || pt == nullptr) continue; + if (marked (pt)) + fail << "implicit dependency cycle detected involving library " + << l; + bool la; const file* f; -- cgit v1.1