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/prerequisite.hxx | |
parent | dc3d7c5fa4062cac36d718766504c87696a3de41 (diff) |
Fix C/C++ link rule matching ambiguity by seeing-through utility libraries
Diffstat (limited to 'build2/prerequisite.hxx')
-rw-r--r-- | build2/prerequisite.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/prerequisite.hxx b/build2/prerequisite.hxx index 551751b..258033d 100644 --- a/build2/prerequisite.hxx +++ b/build2/prerequisite.hxx @@ -131,6 +131,14 @@ namespace build2 return prerequisite_key {proj, {&type, &dir, &out, &name, ext}, &scope}; } + // As above but remap the target type to the specified. + // + prerequisite_key + key (const target_type_type& tt) const + { + return prerequisite_key {proj, {&tt, &dir, &out, &name, ext}, &scope}; + } + // Return true if this prerequisite instance (physically) belongs to the // target's prerequisite list. Note that this test only works if you use // references to the container elements and the container hasn't been |