diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-07 08:36:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-07 08:36:29 +0200 |
commit | 7ee735c0a99b29979594920262db13b4939b3c2c (patch) | |
tree | 114c36104ea2cc1e1c83001d404616dd803ae954 /libbuild2/cc/common.cxx | |
parent | 45ee1a71a27a938db9ffe7218f3a19b585de63b4 (diff) |
Verify libraries and targets they are linked to a for-install-compatible
Diffstat (limited to 'libbuild2/cc/common.cxx')
-rw-r--r-- | libbuild2/cc/common.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index b3a5724..09a1752 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -92,6 +92,7 @@ namespace build2 const small_vector<reference_wrapper< const string>, 2>&, // Library "name". lflags, // Link flags. + const string* type, // cc.type bool sys)>& proc_lib, // System library? const function<bool (const target&, const string& type, // cc.type @@ -272,7 +273,7 @@ namespace build2 : !p.empty () && sys (top_sysd, p.string ())); proc_lib_name = {p.string ()}; - if (!proc_lib (&chain->back (), proc_lib_name, lf, s)) + if (!proc_lib (&chain->back (), proc_lib_name, lf, t, s)) break; } @@ -459,7 +460,7 @@ namespace build2 proc_lib_name.push_back (i->value); } - proc_lib (nullptr, proc_lib_name, 0, r.second); + proc_lib (nullptr, proc_lib_name, 0, nullptr, r.second); continue; } } @@ -552,7 +553,7 @@ namespace build2 proc_lib_name.push_back (*i); } - proc_lib (nullptr, proc_lib_name, 0, r.second); + proc_lib (nullptr, proc_lib_name, 0, nullptr, r.second); } }; |