Closed
Description
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)
Metadata
Metadata
Assignees
Labels
Area: ClippyArea: The miri toolArea: RustfmtCall for participation: Help is requested to fix this issue.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the dev-tools subteam, which will review and decide on the PR/issue.