aboutsummaryrefslogtreecommitdiff
path: root/build/cli/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cli/rule.cxx')
-rw-r--r--build/cli/rule.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/cli/rule.cxx b/build/cli/rule.cxx
index dff13f0..d1cb616 100644
--- a/build/cli/rule.cxx
+++ b/build/cli/rule.cxx
@@ -290,11 +290,13 @@ namespace build
t.mtime (timestamp_nonexistent);
+ target_state ts (r ? target_state::changed : target_state::unchanged);
+
// Clean prerequisites.
//
- target_state ts (reverse_execute_prerequisites (a, t));
+ ts |= reverse_execute_prerequisites (a, t);
- return r && ts != target_state::postponed ? target_state::changed : ts;
+ return ts;
}
}
}