about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-30 18:25:15 +0200
committerGitHub <noreply@github.com>2024-09-30 18:25:15 +0200
commitfd67755554100f47b11b70937690cd83319ffc7a (patch)
treed6ca2aaf8560589cb01c81a7bdf9d37944752d40
parent8502e99217cfe78d484243acd0619b533c5f95d8 (diff)
parent874d55cea8af386d23663dcea1821d9697e028ff (diff)
downloadrust-fd67755554100f47b11b70937690cd83319ffc7a.tar.gz
rust-fd67755554100f47b11b70937690cd83319ffc7a.zip
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.
-rw-r--r--src/bootstrap/src/core/builder.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs
index 77cfd404744..c35384ce3c0 100644
--- a/src/bootstrap/src/core/builder.rs
+++ b/src/bootstrap/src/core/builder.rs
@@ -2014,6 +2014,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