about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-11-06 17:00:58 -0600
committerJoshua Nelson <jnelson@cloudflare.com>2022-11-12 15:38:01 -0600
commit24378885c8ca7e3cae25723da577445d200fe8e8 (patch)
treeaf6362ae2243c2674301403f1ace810790c3bb7e /src
parent34972c512b3384d2194eaa0a85afdf896c6a4d75 (diff)
downloadrust-24378885c8ca7e3cae25723da577445d200fe8e8.tar.gz
rust-24378885c8ca7e3cae25723da577445d200fe8e8.zip
Print "Checking/Building ..." message even when --dry-run is passed
This makes it a lot easier to understand what commands will be run without
having to parse the `-vv` output, which isn't meant to be user facing.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 7dfd75a5351..bbb5a18ba07 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -1019,10 +1019,12 @@ impl Build {
     }
 
     fn info(&self, msg: &str) {
-        if self.config.dry_run() {
-            return;
+        match self.config.dry_run {
+            DryRun::SelfCheck => return,
+            DryRun::Disabled | DryRun::UserSelected => {
+                println!("{}", msg);
+            }
         }
-        println!("{}", msg);
     }
 
     /// Returns the number of parallel jobs that have been configured for this