diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-10-23 11:24:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-10-26 13:29:25 +0200 |
commit | a778f312902ad5036bc940ac63169f0b48e1f556 (patch) | |
tree | 3f4c9d1cef651c697e2b31c987af19480a0a33d9 /libbuild2/adhoc-rule-cxx.cxx | |
parent | 3386bad31f31d5623141297e08cee5de29cd0219 (diff) |
WIP: forward reapply() call to C++ ad hoc rule/recipe
Diffstat (limited to 'libbuild2/adhoc-rule-cxx.cxx')
-rw-r--r-- | libbuild2/adhoc-rule-cxx.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libbuild2/adhoc-rule-cxx.cxx b/libbuild2/adhoc-rule-cxx.cxx index e3dfe92..637f9af 100644 --- a/libbuild2/adhoc-rule-cxx.cxx +++ b/libbuild2/adhoc-rule-cxx.cxx @@ -691,10 +691,20 @@ namespace build2 ? t.group->is_a<group> () : nullptr)) { - match_sync (a, *g); + // @@ Hm, this looks very similar to how we handle ad hoc group members. + // Shouldn't impl be given a chance to translate options or some + // such? + // + match_sync (a, *g, 0 /* options */); return group_recipe; // Execute the group's recipe. } return impl.load (memory_order_relaxed)->apply (a, t, me); } + + void adhoc_cxx_rule:: + reapply (action a, target& t, match_extra& me) const + { + return impl.load (memory_order_relaxed)->reapply (a, t, me); + } } |