aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index e783ee4..5ba3905 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -711,6 +711,13 @@ namespace build2
t_.group->prerequisites ().empty ()
? nullptr : t_.group) {}
+ explicit
+ group_prerequisites (const target& t, const target* g)
+ : t_ (t),
+ g_ (g == nullptr ||
+ g->prerequisites ().empty ()
+ ? nullptr : g) {}
+
using prerequisites_type = target::prerequisites_type;
using base_iterator = prerequisites_type::const_iterator;