aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-15 17:57:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:21 +0200
commitf5090740dcb36067707ff40e0d41cdbeef15e63e (patch)
tree38529704fcc11544ea3c8f64c1f2d86323692d04 /build2/algorithm.ixx
parent32e60fc5d4e771c5776ddb6715db10e5de182f28 (diff)
Add support for skipping rule in delegate_match()
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r--build2/algorithm.ixx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx
index c9c6b02..ee4e338 100644
--- a/build2/algorithm.ixx
+++ b/build2/algorithm.ixx
@@ -50,7 +50,7 @@ namespace build2
}
pair<const rule*, match_result>
- match_impl (action, target&, bool apply);
+ match_impl (action, target&, bool apply, const rule* skip = nullptr);
inline void
match (action a, target& t)
@@ -82,9 +82,9 @@ namespace build2
}
inline pair<recipe, action>
- match_delegate (action a, target& t)
+ match_delegate (action a, target& t, const rule& r)
{
- auto rp (match_impl (a, t, false));
+ auto rp (match_impl (a, t, false, &r));
const match_result& mr (rp.second);
return make_pair (rp.first->apply (mr.recipe_action, t, mr),
mr.recipe_action);