From f5090740dcb36067707ff40e0d41cdbeef15e63e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 15 Oct 2016 17:57:55 +0200 Subject: Add support for skipping rule in delegate_match() --- build2/algorithm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'build2/algorithm') diff --git a/build2/algorithm b/build2/algorithm index db2ccca..4c12148 100644 --- a/build2/algorithm +++ b/build2/algorithm @@ -87,13 +87,14 @@ namespace build2 void match_only (action, target&); - // Match a "delegate rule" from withing another rules' apply() - // function. Return recipe and recipe action (if any). Note - // that unlike match(), this call doesn't increment the - // dependents count. See also the companion execute_delegate(). + // Match a "delegate rule" from withing another rules' apply() function + // skipping 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 + // execute_delegate(). // pair - match_delegate (action, target&); + match_delegate (action, target&, const rule&); // The standard prerequisite search and match implementations. They call // search_and_match_*() versions below passing non-empty directory for -- cgit v1.1