From abb7bf1045fde14f6ef87c8941ee22af233af397 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 3 Aug 2015 15:47:35 +0200 Subject: match_only rework, part 2 --- build/algorithm.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'build/algorithm.cxx') diff --git a/build/algorithm.cxx b/build/algorithm.cxx index bf10b84..94c84b8 100644 --- a/build/algorithm.cxx +++ b/build/algorithm.cxx @@ -60,11 +60,12 @@ namespace build { pair r; - // Clear the resolved targets list before calling match(). The rule - // is free to, say, resize() this list in match() (provided that it - // matches) in order to, for example, prepare it for apply(). + // By default, clear the resolved targets list before calling + // match(). The rule is free to modify this list in match() + // (provided that it matches) in order to, for example, prepare + // it for apply(). // - t.prerequisite_targets.clear (); + t.reset (a); // If this is a nested operation, first try the outer operation. // This allows a rule to implement a "precise match", that is, -- cgit v1.1