diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-21 17:12:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-21 17:12:22 +0200 |
commit | 34e19551c1db1d8f0be3a41735506d6ce04b70e1 (patch) | |
tree | 4b0e8c004c12cbdecaefe109c47d7c77d7b0778d /build2/target.cxx | |
parent | f0a73bf037a63849c89c090625b645e2b4da08c9 (diff) |
Move target state reset back to recipe()
Doing it in target::reset() (which is called by match()) didn't play well
with delegated recipes.
Diffstat (limited to 'build2/target.cxx')
-rw-r--r-- | build2/target.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build2/target.cxx b/build2/target.cxx index 4d4fe2a..d64b0be 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -66,6 +66,8 @@ namespace build2 action = a; recipe_ = move (r); + raw_state = target_state::unknown; + // If this is a noop recipe, then mark the target unchanged so that we // don't waste time executing the recipe. // @@ -86,7 +88,6 @@ namespace build2 reset (action_type) { prerequisite_targets.clear (); - raw_state = target_state::unknown; } group_view target:: |