diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-16 16:48:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-02-16 16:48:25 +0200 |
commit | 114fb345a5223ea513851f57c8c002abc1496c4a (patch) | |
tree | 4b433f67ca0b0cb74a7b33183000d2f2ac007e79 /build2/target.hxx | |
parent | 6293ede7a742866a713050737cc2b43d51161b6f (diff) |
Perform ad hoc group resolution instead of resolve_group() in module search
Diffstat (limited to 'build2/target.hxx')
-rw-r--r-- | build2/target.hxx | 7 |
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; |