diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-15 15:59:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-15 15:59:22 +0200 |
commit | 743273bd381a132c272226af00381da0494e8920 (patch) | |
tree | b43f53fa0a1b40c1aa38238e42bbe0e0515afe13 /libbuild2/cc/common.cxx | |
parent | 84c947319c7300bab12f800088d6b92245388f20 (diff) |
Diagnose various misuses of library metadata protocol
Diffstat (limited to 'libbuild2/cc/common.cxx')
-rw-r--r-- | libbuild2/cc/common.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; |