Rollup merge of #131056 - onur-ozkan:cargo-compiler-fingerprint, r=Kobzol

enable compiler fingerprint logs in verbose mode

This provides very useful logs especially when debugging build cache-related stuff.
This commit is contained in:
Matthias Krüger 2024-09-30 18:25:15 +02:00 committed by GitHub
commit fd67755554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2014,6 +2014,11 @@ fn cargo(
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1"); cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
} }
if self.is_verbose() {
// This provides very useful logs especially when debugging build cache-related stuff.
cargo.env("CARGO_LOG", "cargo::core::compiler::fingerprint=info");
}
cargo.env("RUSTC_VERBOSE", self.verbosity.to_string()); cargo.env("RUSTC_VERBOSE", self.verbosity.to_string());
// Downstream forks of the Rust compiler might want to use a custom libc to add support for // Downstream forks of the Rust compiler might want to use a custom libc to add support for