mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: rust-project.json projects not preferring sysroot rustc
This commit is contained in:
parent
d4d9d0c85a
commit
64c17a9b2e
6 changed files with 25 additions and 18 deletions
|
@ -57,8 +57,7 @@ pub fn get(
|
|||
RustcDataLayoutConfig::Rustc(sysroot) => sysroot,
|
||||
};
|
||||
|
||||
let mut cmd = Command::new(toolchain::Tool::Rustc.path());
|
||||
Sysroot::set_rustup_toolchain_env(&mut cmd, sysroot);
|
||||
let mut cmd = Sysroot::rustc(sysroot);
|
||||
cmd.envs(extra_env)
|
||||
.args(["-Z", "unstable-options", "--print", "target-spec-json"])
|
||||
.env("RUSTC_BOOTSTRAP", "1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue