aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
commitca41ca8f9a6b21588248e5fee1a013363f3f52a8 (patch)
tree6e791ddac1c6f794273a9701c0c7f1bc9ec3d000 /build/algorithm
parent0cee33621a93d3348a1bf19a0c94441b717cbcbc (diff)
Add support for "first" and "last" execution modes
Diffstat (limited to 'build/algorithm')
-rw-r--r--build/algorithm5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/algorithm b/build/algorithm
index fa74769..a272a4c 100644
--- a/build/algorithm
+++ b/build/algorithm
@@ -53,6 +53,11 @@ namespace build
target_state
execute_prerequisites (action, target&);
+ // As above but iterates over the prerequisites in reverse.
+ //
+ target_state
+ reverse_execute_prerequisites (action, target&);
+
// A version of the above that also determines whether the action
// needs to be executed on the target based on the passed timestamp.
//