From 0798dc8be4509c057e2ba62e611f53e6f873ea67 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Oct 2022 07:06:18 +0200 Subject: Implement parallel execution of post hoc prerequisites --- libbuild2/algorithm.ixx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/algorithm.ixx') 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; -- cgit v1.1