aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-03-09 11:13:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-09 11:13:05 +0200
commit145589cf2b524b59a8ffa950882d3433e2885b7c (patch)
treef3db3dee01d39e72f7033171c34d1fe7403da490 /libbuild2/algorithm.cxx
parent2e6c3bf33ab1cd75b9936e65568a39571f279fc3 (diff)
Rename execute_wait() to execute()
The old half-way semantics of execute() wasn't useful.
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index c101117..64d4689 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -2510,7 +2510,10 @@ namespace build2
//
const target& g (*t.group);
- target_state gs (execute (a, g));
+ // This is execute(a, t, false) but that saves a call to executed_state()
+ // (which we don't need).
+ //
+ target_state gs (execute (a, g, 0, nullptr));
if (gs == target_state::busy)
ctx.sched.wait (ctx.count_executed (),