Skip to content

Commit

Permalink
Rollup merge of #131056 - onur-ozkan:cargo-compiler-fingerprint, r=Ko…
Browse files Browse the repository at this point in the history
…bzol

enable compiler fingerprint logs in verbose mode

This provides very useful logs especially when debugging build cache-related stuff.
  • Loading branch information
matthiaskrgr authored Sep 30, 2024
2 parents 8502e99 + 874d55c commit fd67755
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd67755

Please sign in to comment.