aboutsummaryrefslogtreecommitdiff
path: root/build/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-01 10:45:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-01 10:47:13 +0200
commitf7e9830c0c413f05737002dcc8d06e73cb379980 (patch)
treed5195010b6ca66a270ead105302ef918bff07f0f /build/cxx
parent17b3a78696f0b1fd6f0f60d53ec568cf3b9e32b4 (diff)
Group state support
Diffstat (limited to 'build/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;