From e84eedc54348e268ca95200b70caede9884076ea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 09:28:28 +0200 Subject: Add support for custom data storage in target::preprequisite_targets --- build2/algorithm.ixx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/algorithm.ixx') 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 (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 -- cgit v1.1