aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/common.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-08-17 10:00:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-08-17 10:00:55 +0200
commit54512574c11b196173d432baa3fc13f04095539a (patch)
tree7c3b6ed4201a2fb4bc322a1bcf9172d006c79102 /libbuild2/cc/common.txx
parent287fd8e3bc60fa69f1ae486efbd635f43ba599ce (diff)
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.
Diffstat (limited to 'libbuild2/cc/common.txx')
-rw-r--r--libbuild2/cc/common.txx4
1 files changed, 3 insertions, 1 deletions
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<mtime_target> ()};
+
r = &p.first.template as<T> ();
return move (p.second);
}