diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-26 12:28:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-26 12:28:05 +0200 |
commit | d1fbcace59846d55c66e741dbc3d59e20ae3e5cf (patch) | |
tree | af1325d7d519bda64535f602c8ea1a3147b97b31 /build2/cc/utility.hxx | |
parent | dc3d7c5fa4062cac36d718766504c87696a3de41 (diff) |
Fix C/C++ link rule matching ambiguity by seeing-through utility libraries
Diffstat (limited to 'build2/cc/utility.hxx')
-rw-r--r-- | build2/cc/utility.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build2/cc/utility.hxx b/build2/cc/utility.hxx index 82d9f71..bc6c3fb 100644 --- a/build2/cc/utility.hxx +++ b/build2/cc/utility.hxx @@ -60,8 +60,11 @@ namespace build2 // Given the link order return the library member to link. That is, liba{} // or libs{} for lib{} and libue{}, libua{} or libus{} for libu*{}. // - const target& - link_member (const bin::libx&, action, linfo); + // If existing is true, then only return the member target if it exists + // (currently only used and supported for utility libraries). + // + const target* + link_member (const bin::libx&, action, linfo, bool existing = false); } } |