Skip to content

Commit 874d55c

Browse files
committed
enable compiler fingerprint logs in verbose mode
Signed-off-by: onur-ozkan <[email protected]>
1 parent 612796c commit 874d55c

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
@@ -2012,6 +2012,11 @@ impl<'a> Builder<'a> {
20122012
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
20132013
}
20142014

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

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

0 commit comments

Comments
 (0)