aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-04-05 09:41:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-04-08 12:51:00 +0200
commit01d848149c22a69a62eada5fedc2406c54d95ba8 (patch)
tree66a3b59619f32f7f7244200f810f4d4cc9115ca5 /build2/operation.cxx
parent3392226a2248b5cd93a899afb986917ce9e7ad74 (diff)
Support for --dry-run|-n mode, perform update part
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r--build2/operation.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx
index 74db2f3..9bc8a4e 100644
--- a/build2/operation.cxx
+++ b/build2/operation.cxx
@@ -269,6 +269,10 @@ namespace build2
phase_lock pl (run_phase::execute); // Never switched.
+ // Set the dry-run flag.
+ //
+ dry_run = ops.dry_run ();
+
// Setup progress reporting if requested.
//
string what; // Note: must outlive monitor_guard.
@@ -338,6 +342,10 @@ namespace build2
sched.tune (0); // Restore original scheduler settings.
+ // Clear the dry-run flag.
+ //
+ dry_run = false;
+
// Clear the progress if present.
//
if (mg)