aboutsummaryrefslogtreecommitdiff
path: root/build/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
commit1d6e68fda762535fa8508f94ca254a79f293edb2 (patch)
tree7b97edd9f1786cd610c1f41e720d2b105dd87cbc /build/cli
parentbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (diff)
Add support for generated test input/output
Diffstat (limited to 'build/cli')
-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;
}
}
}