From 874d55cea8af386d23663dcea1821d9697e028ff Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 30 Sep 2024 13:05:44 +0300 Subject: [PATCH] enable compiler fingerprint logs in verbose mode Signed-off-by: onur-ozkan --- src/bootstrap/src/core/builder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 47420f8fe72fb..122eb50dd946e 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -2012,6 +2012,11 @@ impl<'a> Builder<'a> { 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()); // Downstream forks of the Rust compiler might want to use a custom libc to add support for