mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +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
|
@ -440,8 +440,7 @@ impl WorkspaceBuildScripts {
|
|||
if let Ok(it) = utf8_stdout(cargo_config) {
|
||||
return Ok(it);
|
||||
}
|
||||
let mut cmd = Command::new(Tool::Rustc.path());
|
||||
Sysroot::set_rustup_toolchain_env(&mut cmd, sysroot);
|
||||
let mut cmd = Sysroot::rustc(sysroot);
|
||||
cmd.envs(extra_env);
|
||||
cmd.args(["--print", "target-libdir"]);
|
||||
utf8_stdout(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue