aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-06-26 12:28:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-06-26 12:28:05 +0200
commitd1fbcace59846d55c66e741dbc3d59e20ae3e5cf (patch)
treeaf1325d7d519bda64535f602c8ea1a3147b97b31 /build2/cc/utility.hxx
parentdc3d7c5fa4062cac36d718766504c87696a3de41 (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.hxx7
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);
}
}