diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-20 07:06:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-20 07:06:18 +0200 |
commit | 0798dc8be4509c057e2ba62e611f53e6f873ea67 (patch) | |
tree | cebbaf71f79e96ec4ade16c143b851004e90f936 /libbuild2/algorithm.ixx | |
parent | 506ed2155bdf678eee6ff21272ef603280eb7a91 (diff) |
Implement parallel execution of post hoc prerequisites
Diffstat (limited to 'libbuild2/algorithm.ixx')
-rw-r--r-- | libbuild2/algorithm.ixx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/algorithm.ixx b/libbuild2/algorithm.ixx index 3398595..3c6c2fa 100644 --- a/libbuild2/algorithm.ixx +++ b/libbuild2/algorithm.ixx @@ -431,7 +431,7 @@ namespace build2 target_state r (match_impl (a, t, 0, nullptr).second); - if (fail && r == target_state::failed) + if (r == target_state::failed && fail) throw failed (); return r; @@ -509,7 +509,7 @@ namespace build2 assert (ctx.phase == run_phase::match); target_state r (match_impl (a, t, sc, &tc).second); - if (fail && !ctx.keep_going && r == target_state::failed) + if (r == target_state::failed && fail && !ctx.keep_going) throw failed (); return r; |