aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-13 09:30:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-07-13 09:30:52 +0200
commit4b15244f65eb246d4e5d98ebfc1aa3137dc7275e (patch)
tree7bb1564772662ef22ea0dc12788938b28213b57c /libbuild2/algorithm.cxx
parentdb73844a1e11787025a8642f69a52b5f9c87aea2 (diff)
Add ability to extend rule interface in source-compatible manner
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx9
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.