aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm')
-rw-r--r--build2/algorithm7
1 files changed, 4 insertions, 3 deletions
diff --git a/build2/algorithm b/build2/algorithm
index 2fa9fe4..dfe8c42 100644
--- a/build2/algorithm
+++ b/build2/algorithm
@@ -162,12 +162,13 @@ namespace build2
// Match a "delegate rule" from withing another rules' apply() function
// avoiding recursive matches (thus the third argument). Return recipe and
- // recipe action (if any). Note that unlike match(), this call doesn't
- // increment the dependents count. See also the companion
+ // recipe action (if any). Unless fail is false, fail if not rule is found.
+ // Otherwise return empty recipe. Note that unlike match(), this function
+ // does not increment the dependents count. See also the companion
// execute_delegate().
//
pair<recipe, action>
- match_delegate (action, target&, const rule&);
+ match_delegate (action, target&, const rule&, bool fail = true);
// The standard prerequisite search and match implementations. They call
// search() and then match() for each prerequisite in a loop omitting out of