Skip to content

Commit fd67755

Browse files
authored
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.
2 parents 8502e99 + 874d55c commit fd67755

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,11 @@ impl<'a> Builder<'a> {
20142014
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
20152015
}
20162016

2017+
if self.is_verbose() {
2018+
// This provides very useful logs especially when debugging build cache-related stuff.
2019+
cargo.env("CARGO_LOG", "cargo::core::compiler::fingerprint=info");
2020+
}
2021+
20172022
cargo.env("RUSTC_VERBOSE", self.verbosity.to_string());
20182023

20192024
// Downstream forks of the Rust compiler might want to use a custom libc to add support for

0 commit comments

Comments
 (0)