From 54512574c11b196173d432baa3fc13f04095539a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Aug 2022 10:00:55 +0200 Subject: Handle another "in *.export.libs but not in prerequisites" case Also, enable this check even if proc_lib is not specified unless in the execute phase. --- libbuild2/cc/common.txx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/common.txx') diff --git a/libbuild2/cc/common.txx b/libbuild2/cc/common.txx index d14f966..f55072c 100644 --- a/libbuild2/cc/common.txx +++ b/libbuild2/cc/common.txx @@ -27,7 +27,9 @@ namespace build2 target_decl::implied, trace)); - assert (!exist || !p.second); + if (exist && p.second) + throw non_existent_library {p.first.template as ()}; + r = &p.first.template as (); return move (p.second); } -- cgit v1.1