about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-08-02 10:54:13 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-08-02 10:54:13 -0400
commitcc7abc7563ac6eb503023b2c4383cfb526a03962 (patch)
tree02493f25b6080265f11459003e3e86437f299c33
parent1e9913807841153729f92e438e6189184cbf561f (diff)
downloadrust-cc7abc7563ac6eb503023b2c4383cfb526a03962.tar.gz
rust-cc7abc7563ac6eb503023b2c4383cfb526a03962.zip
Avoid dumping rustc invocations to stdout
These are quite long, usually, and in most cases not interesting. On smaller
terminals they can take up more than a full page of output, hiding the error
diagnostics emitted.
-rw-r--r--src/bootstrap/bin/rustc.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index d6649d0521c..4dd71ebade1 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -171,7 +171,9 @@ fn main() {
         // note: everything below here is unreachable. do not put code that
         // should run on success, after this block.
     }
-    println!("\nDid not run successfully: {}\n{:?}\n-------------", status, cmd);
+    if verbose > 0 {
+        println!("\nDid not run successfully: {}\n{:?}\n-------------", status, cmd);
+    }
 
     if let Some(mut on_fail) = on_fail {
         on_fail.status().expect("Could not run the on_fail command");