aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-27 15:25:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commitf93038fbee1631b95922b0742e0fd00fa8dae02e (patch)
tree6fe67cbde528ee8ded490085b9a8d5adc0ce5aca /build2/cc/common.cxx
parent267d34d2800d9cc3ed2865cbecf8d32f8f1ab6ec (diff)
Add notion of phase, enforce
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r--build2/cc/common.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx
index b941e6e..aa0a45b 100644
--- a/build2/cc/common.cxx
+++ b/build2/cc/common.cxx
@@ -402,7 +402,10 @@ namespace build2
// Search for an existing target with this name "as if" it was a
// prerequisite.
//
- xt = &search (move (n), s);
+ xt = search_existing (n, s);
+
+ if (xt == nullptr)
+ fail << "unable to find library " << n;
}
else
{