Skip to content

Commit

Permalink
Avoid dumping rustc invocations to stdout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mark-Simulacrum committed Aug 2, 2020
1 parent 1e99138 commit cc7abc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/bin/rustc.rs
Expand Up @@ -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");
Expand Down

0 comments on commit cc7abc7

Please sign in to comment.