aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r--build2/algorithm.ixx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx
index 5226af4..53501d3 100644
--- a/build2/algorithm.ixx
+++ b/build2/algorithm.ixx
@@ -355,7 +355,9 @@ namespace build2
execute_prerequisites (action a, const target& t)
{
auto& p (const_cast<target&> (t).prerequisite_targets); // MT-aware.
- return execute_members (a, t, p.data (), p.size ());
+ return current_mode == execution_mode::first
+ ? straight_execute_members (a, t, p.data (), p.size ())
+ : reverse_execute_members (a, t, p.data (), p.size ());
}
// If the first argument is NULL, then the result is treated as a boolean