cargo doesn't rerun build scripts when RUSTC is changed #10367
Labels
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
The RUSTC env variable is provided to build scripts by cargo. According to the docs: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-env-changed
Cargo should rerun build scripts when rustc changes. I suspect this code needs to account for the path of the compiler, not just the version:
cargo/src/cargo/core/compiler/context/compilation_files.rs
Line 569 in 3bc0e6d
See rust-lang/rust#93723 for a reproduction, but it's not anywhere close to minimal.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: