aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-03 15:47:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-03 15:47:35 +0200
commitabb7bf1045fde14f6ef87c8941ee22af233af397 (patch)
tree734b8e605c00f79e00687ec4912366b88fbbb050 /build/algorithm.cxx
parent0db17bfec8b3b6c436f3c9c346d17d98458c3654 (diff)
match_only rework, part 2
Diffstat (limited to 'build/algorithm.cxx')
-rw-r--r--build/algorithm.cxx9
1 files changed, 5 insertions, 4 deletions
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<const rule*, match_result> 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,