From f7e9830c0c413f05737002dcc8d06e73cb379980 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Jul 2015 10:45:14 +0200 Subject: Group state support --- build/cxx/rule.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build/cxx') 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; -- cgit v1.1