File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1145,7 +1145,8 @@ def build_bootstrap_cmd(self, env):
1145
1145
os .path .join (self .rust_root , "src/bootstrap/Cargo.toml" ),
1146
1146
"-Zroot-dir=" + self .rust_root ,
1147
1147
]
1148
- args .extend ("--verbose" for _ in range (self .verbose ))
1148
+ # verbose cargo output is very noisy, so only enable it with -vv
1149
+ args .extend ("--verbose" for _ in range (self .verbose - 1 ))
1149
1150
1150
1151
if "BOOTSTRAP_TRACING" in env :
1151
1152
args .append ("--features=tracing" )
Original file line number Diff line number Diff line change @@ -3418,9 +3418,6 @@ impl Step for TierCheck {
3418
3418
) ;
3419
3419
cargo. arg ( builder. src . join ( "src/doc/rustc/src/platform-support.md" ) ) ;
3420
3420
cargo. arg ( builder. rustc ( self . test_compiler ) ) ;
3421
- if builder. is_verbose ( ) {
3422
- cargo. arg ( "--verbose" ) ;
3423
- }
3424
3421
3425
3422
let _guard = builder. msg_test (
3426
3423
"platform support check" ,
Original file line number Diff line number Diff line change @@ -1133,7 +1133,7 @@ impl Builder<'_> {
1133
1133
cargo. env ( "RUSTC_BACKTRACE_ON_ICE" , "1" ) ;
1134
1134
}
1135
1135
1136
- if self . is_verbose ( ) {
1136
+ if self . is_verbose_than ( 1 ) {
1137
1137
// This provides very useful logs especially when debugging build cache-related stuff.
1138
1138
cargo. env ( "CARGO_LOG" , "cargo::core::compiler::fingerprint=info" ) ;
1139
1139
}
@@ -1275,8 +1275,9 @@ impl Builder<'_> {
1275
1275
cargo. env ( "WINAPI_NO_BUNDLED_LIBRARIES" , "1" ) ;
1276
1276
}
1277
1277
1278
- for _ in 0 ..self . verbosity {
1279
- cargo. arg ( "-v" ) ;
1278
+ // verbose cargo output is very noisy, so only enable it with -vv
1279
+ for _ in 0 ..self . verbosity . saturating_sub ( 1 ) {
1280
+ cargo. arg ( "--verbose" ) ;
1280
1281
}
1281
1282
1282
1283
match ( mode, self . config . rust_codegen_units_std , self . config . rust_codegen_units ) {
You can’t perform that action at this time.
0 commit comments