From 4b15244f65eb246d4e5d98ebfc1aa3137dc7275e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Jul 2020 09:30:52 +0200 Subject: Add ability to extend rule interface in source-compatible manner --- libbuild2/algorithm.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libbuild2/algorithm.cxx') 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. -- cgit v1.1