aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-03 14:33:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-03 15:25:32 +0200
commit183329b89ddf810e2df5c250ae5b97d8ebcbba74 (patch)
treebf1e174ffe0929a9ec78ac642b351cbc5a23b78b /build2/algorithm
parentbcb5045dff9e87decbad3a785eb1fe42f4fc1410 (diff)
Fix cli distribution via group
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