aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-08 09:39:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:42 +0200
commit9aa99bc4e62909c119df72bda26b091245d48274 (patch)
tree45814aef0b6e22cf5edbd6c9c63d97e74c9ee399 /build2/algorithm.cxx
parent8aee78c8d0eb06334571e596f6fbdf7ed5756f0c (diff)
Do some naming cleanups
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 1ede115..872b10e 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -669,6 +669,8 @@ namespace build2
action a, const target& t,
const timestamp& mt, const prerequisite_filter& pf)
{
+ assert (current_mode == execution_mode::first);
+
// Pretty much as straight_execute_members() but hairier.
//
target_state rs (target_state::unchanged);
@@ -766,9 +768,7 @@ namespace build2
target_state
default_action (action a, const target& t)
{
- return current_mode == execution_mode::first
- ? execute_prerequisites (a, t)
- : reverse_execute_prerequisites (a, t);
+ return execute_prerequisites (a, t);
}
target_state