aboutsummaryrefslogtreecommitdiff
path: root/build2/prerequisite.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/prerequisite.hxx')
-rw-r--r--build2/prerequisite.hxx8
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