From 114fb345a5223ea513851f57c8c002abc1496c4a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Feb 2018 16:48:25 +0200 Subject: Perform ad hoc group resolution instead of resolve_group() in module search --- build2/target.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/target.hxx') 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; -- cgit v1.1