diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-24 16:39:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-24 16:39:55 +0200 |
commit | 1d6e68fda762535fa8508f94ca254a79f293edb2 (patch) | |
tree | 7b97edd9f1786cd610c1f41e720d2b105dd87cbc /build/bin | |
parent | bb4f9e6498ba715911f83e0dc221a5b1b86baf51 (diff) |
Add support for generated test input/output
Diffstat (limited to 'build/bin')
-rw-r--r-- | build/bin/rule.cxx | 16 |
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; } |