mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
Enforce a current directory being set for spawned commands
This commit is contained in:
parent
0f95e60da3
commit
5ce14b0439
22 changed files with 99 additions and 75 deletions
|
|
@ -74,10 +74,9 @@ pub(crate) fn cargo_config_env(
|
|||
extra_env: &FxHashMap<String, String>,
|
||||
sysroot: &Sysroot,
|
||||
) -> FxHashMap<String, String> {
|
||||
let mut cargo_config = sysroot.tool(Tool::Cargo);
|
||||
let mut cargo_config = sysroot.tool(Tool::Cargo, manifest.parent());
|
||||
cargo_config.envs(extra_env);
|
||||
cargo_config
|
||||
.current_dir(manifest.parent())
|
||||
.args(["-Z", "unstable-options", "config", "get", "env"])
|
||||
.env("RUSTC_BOOTSTRAP", "1");
|
||||
if manifest.is_rust_manifest() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue