Make the default sysroot configurable by rustc_private tools #98832
Labels
A-clippy
Area: Clippy
A-miri
Area: The miri tool
A-rustfmt
Area: Rustfmt
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
This code hard-codes the default sysroot to be "one path above the binary":
rust/compiler/rustc_session/src/filesearch.rs
Lines 128 to 131 in a3d7a5e
That doesn't work for Miri, which is why it needs various hacks around sysroot (also copied in clippy and rustfmt). We should make the default sysroot configurable in rustc_driver so tools can stop using this hack.
cc #97443, @flip1995, @calebcartwright
Originally posted by @RalfJung in #78926 (comment)
The text was updated successfully, but these errors were encountered: