From 01d848149c22a69a62eada5fedc2406c54d95ba8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Apr 2019 09:41:18 +0200 Subject: Support for --dry-run|-n mode, perform update part --- build2/operation.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/operation.cxx') 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) -- cgit v1.1