From 5e2c26176cf48b65103251186a2bf321eda069a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 May 2018 09:14:48 +0200 Subject: Fix postponed group/member state race --- build2/target.ixx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/target.ixx') diff --git a/build2/target.ixx b/build2/target.ixx index ea91b6e..88bc530 100644 --- a/build2/target.ixx +++ b/build2/target.ixx @@ -94,14 +94,14 @@ namespace build2 { // We go an extra step and short-circuit to the target state even if the // raw state is not group provided the recipe is group_recipe and the - // state is not failed. + // state is unknown (see mtime() for some ideas on why we do it). // const opstate& s (state[a]); if (s.state == target_state::group) return true; - if (s.state != target_state::failed && group != nullptr) + if (s.state == target_state::unknown && group != nullptr) { if (recipe_function* const* f = s.recipe.target ()) return *f == &group_action; -- cgit v1.1