Skip to content

Commit

Permalink
Unrolled build for rust-lang#131056
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored Sep 30, 2024
2 parents 63a0bdd + 874d55c commit 86fc225
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 86fc225

Please sign in to comment.