diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 09:28:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 09:28:28 +0200 |
commit | e84eedc54348e268ca95200b70caede9884076ea (patch) | |
tree | 47adec094b24d8cb6934bbf28434e746ad9f564f /build2/algorithm.ixx | |
parent | 566bcb8c4c36d12e398f00349c5f27cae06fa7a9 (diff) |
Add support for custom data storage in target::preprequisite_targets
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r-- | build2/algorithm.ixx | 4 |
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 |