aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/rule.cxx')
-rw-r--r--build/cxx/rule.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx
index 0812922..08a9202 100644
--- a/build/cxx/rule.cxx
+++ b/build/cxx/rule.cxx
@@ -663,10 +663,10 @@ namespace build
// have been in target_state::changed because of a dependency
// extraction run for some other source file.
//
- target_state os (pt.state);
- execute_direct (a, pt);
+ target_state os (pt.state ());
+ target_state ns (execute_direct (a, pt));
- if (pt.state != os && pt.state != target_state::unchanged)
+ if (ns != os && ns != target_state::unchanged)
{
level5 ([&]{trace << "updated " << pt << ", restarting";});
restart = true;