aboutsummaryrefslogtreecommitdiff
path: root/build/bin
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/bin
parentbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (diff)
Add support for generated test input/output
Diffstat (limited to 'build/bin')
-rw-r--r--build/bin/rule.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/build/bin/rule.cxx b/build/bin/rule.cxx
index f02029b..0a7f2ee 100644
--- a/build/bin/rule.cxx
+++ b/build/bin/rule.cxx
@@ -114,23 +114,13 @@ namespace build
if (current_mode == execution_mode::last)
swap (m1, m2);
- target_state r (target_state::unchanged), ts;
+ target_state r (target_state::unchanged);
if (m1 != nullptr)
- {
- ts = execute (a, *m1);
- if (ts == target_state::postponed ||
- (ts == target_state::changed && r == target_state::unchanged))
- r = ts;
- }
+ r |= execute (a, *m1);
if (m2 != nullptr)
- {
- ts = execute (a, *m2);
- if (ts == target_state::postponed ||
- (ts == target_state::changed && r == target_state::unchanged))
- r = ts;
- }
+ r |= execute (a, *m2);
return r;
}