diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-03 10:05:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-03 10:05:16 +0200 |
commit | bcb5045dff9e87decbad3a785eb1fe42f4fc1410 (patch) | |
tree | d5ed2b39f3704e28f0707b61cd50114cfe775d4c /build2/target.ixx | |
parent | 2069cbb8f72bceb0fcb968ba05968a24eeb0c15d (diff) |
Use final action state after match at top level (operation)
Diffstat (limited to 'build2/target.ixx')
-rw-r--r-- | build2/target.ixx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build2/target.ixx b/build2/target.ixx index 661321d..f581e5e 100644 --- a/build2/target.ixx +++ b/build2/target.ixx @@ -111,6 +111,19 @@ namespace build2 return r; } + inline target_state target:: + serial_state (bool fail) const + { + //assert (sched.serial ()); + + target_state r (group_state () ? group->state_ : state_); + + if (fail && r == target_state::failed) + throw failed (); + + return r; + } + inline void target:: recipe (recipe_type r) { |