From d1fbcace59846d55c66e741dbc3d59e20ae3e5cf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Jun 2019 12:28:05 +0200 Subject: Fix C/C++ link rule matching ambiguity by seeing-through utility libraries --- build2/prerequisite.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/prerequisite.hxx') 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 -- cgit v1.1