aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.cxx
diff options
context:
space:
mode:
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)