diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-23 09:21:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-29 10:20:56 +0200 |
commit | 349b34108752e2fcf1ead648ffec8e5acfe4a91c (patch) | |
tree | e7b3a980a4720a230d705a4b175299ed449aaa4f /libbuild2/scope.cxx | |
parent | a020c97722dc8b3d2bfc93eb4f344821b1c8af18 (diff) |
Explicit group: syntax parsing
Diffstat (limited to 'libbuild2/scope.cxx')
-rw-r--r-- | libbuild2/scope.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libbuild2/scope.cxx b/libbuild2/scope.cxx index 51a1c25..be2669d 100644 --- a/libbuild2/scope.cxx +++ b/libbuild2/scope.cxx @@ -952,7 +952,9 @@ namespace build2 } pair<reference_wrapper<const target_type>, bool> scope:: - derive_target_type (const string& name, const target_type& base) + derive_target_type (const string& name, + const target_type& base, + target_type::flag flags) { assert (root_scope () == this); @@ -970,10 +972,13 @@ namespace build2 // // Currently, if we define myfile{}: file{}, then myfile{foo} and // myfile{foo.x} are the same target. + + // Note: copies flags. // unique_ptr<target_type> dt (new target_type (base)); dt->base = &base; dt->factory = &derived_tt_factory; + dt->flags |= flags; #if 0 // @@ We should probably inherit the fixed extension unless overriden with |