about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-03 01:05:28 +0900
committerGitHub <noreply@github.com>2020-08-03 01:05:28 +0900
commit50f2b5d9a02a95d0e3d2183ea58958a5a16a7177 (patch)
treefec5a53cc6a046a4dc69d53aca053768380e27e3
parent595a2f5c6b3fdc288b068788b50d82336a146e2b (diff)
parentcc7abc7563ac6eb503023b2c4383cfb526a03962 (diff)
downloadrust-50f2b5d9a02a95d0e3d2183ea58958a5a16a7177.tar.gz
rust-50f2b5d9a02a95d0e3d2183ea58958a5a16a7177.zip
Rollup merge of #75057 - Mark-Simulacrum:avoid-long-print, r=alexcrichton
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");