From f93038fbee1631b95922b0742e0fd00fa8dae02e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Jan 2017 15:25:26 +0200 Subject: Add notion of phase, enforce --- build2/cc/common.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/cc/common.cxx') 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 { -- cgit v1.1