diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-13 09:30:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-13 09:30:52 +0200 |
commit | 4b15244f65eb246d4e5d98ebfc1aa3137dc7275e (patch) | |
tree | 7bb1564772662ef22ea0dc12788938b28213b57c /libbuild2/algorithm.cxx | |
parent | db73844a1e11787025a8642f69a52b5f9c87aea2 (diff) |
Add ability to extend rule interface in source-compatible manner
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r-- | libbuild2/algorithm.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index de68be2..e1f30e0 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -450,7 +450,8 @@ namespace build2 << diag_do (a, t); }); - if (!ru.match (a, t, hint)) + rule::match_extra me; + if (!ru.match (a, t, hint, me)) continue; } @@ -479,7 +480,8 @@ namespace build2 // // @@ Can't we temporarily swap things out in target? // - if (!ru1.match (a, t, hint)) + rule::match_extra me1; + if (!ru1.match (a, t, hint, me1)) continue; } @@ -527,7 +529,8 @@ namespace build2 << diag_do (a, t); }); - return r.second.get ().apply (a, t); + rule::match_extra me; + return r.second.get ().apply (a, t, me); } // If step is true then perform only one step of the match/apply sequence. |