aboutsummaryrefslogtreecommitdiff
path: root/build2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-03 10:05:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-03 10:05:16 +0200
commitbcb5045dff9e87decbad3a785eb1fe42f4fc1410 (patch)
treed5ed2b39f3704e28f0707b61cd50114cfe775d4c /build2/target.ixx
parent2069cbb8f72bceb0fcb968ba05968a24eeb0c15d (diff)
Use final action state after match at top level (operation)
Diffstat (limited to 'build2/target.ixx')
-rw-r--r--build2/target.ixx13
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)
{