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/algorithm.cxx | |
parent | 3386bad31f31d5623141297e08cee5de29cd0219 (diff) |
WIP: forward reapply() call to C++ ad hoc rule/recipe
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r-- | libbuild2/algorithm.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index b34c175..0c90642 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -591,7 +591,7 @@ namespace build2 const rule_match* r (g->state[a].rule); assert (r != nullptr); // Shouldn't happen with dyn_members. - me.new_options = options; // Currently unused but maybe in future. + me.new_options = options; return r; } @@ -622,7 +622,7 @@ namespace build2 true /* try_match */, &gme)) { - me.new_options = options; // Currently unused but maybe in future. + me.new_options = options; return r; } @@ -1129,6 +1129,9 @@ namespace build2 // 4. Continue matching the group passing the translated options. // 5. Keep track of member options in member's cur_options to handle // member rematches (if already offset_{applied,executed}). + // + // Note: see also similar semantics but for explicit groups in + // adhoc-rule-*.cxx. assert (!step && options == match_extra::all_options); |