-
Notifications
You must be signed in to change notification settings - Fork 13.8k
bootstrap: lower verbosity of cargo to one less than bootstrap's #146609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1133,7 +1133,7 @@ impl Builder<'_> { | |
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1"); | ||
} | ||
|
||
if self.is_verbose() { | ||
if self.is_verbose_than(1) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Huh, that's a weird (pre-existing) function name. I had to look at the code to understand what it meant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, the names are pretty terrible here, I plan to rename them, once I get to it. |
||
// This provides very useful logs especially when debugging build cache-related stuff. | ||
cargo.env("CARGO_LOG", "cargo::core::compiler::fingerprint=info"); | ||
} | ||
|
@@ -1275,8 +1275,9 @@ impl Builder<'_> { | |
cargo.env("WINAPI_NO_BUNDLED_LIBRARIES", "1"); | ||
} | ||
|
||
for _ in 0..self.verbosity { | ||
cargo.arg("-v"); | ||
// verbose cargo output is very noisy, so only enable it with -vv | ||
for _ in 0..self.verbosity.saturating_sub(1) { | ||
cargo.arg("--verbose"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed from |
||
} | ||
|
||
match (mode, self.config.rust_codegen_units_std, self.config.rust_codegen_units) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're already setting verbosity in
Builder::cargo
, which is indirectly called byprepare_tool_cargo
, so this is not needed.