From 34e19551c1db1d8f0be3a41735506d6ce04b70e1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2016 17:12:22 +0200 Subject: Move target state reset back to recipe() Doing it in target::reset() (which is called by match()) didn't play well with delegated recipes. --- build2/target.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build2/target.cxx') 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:: -- cgit v1.1