aboutsummaryrefslogtreecommitdiff
path: root/build2/target.ixx
diff options
context:
space:
mode:
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)
{