mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Add cargo.extraEnv setting
This commit is contained in:
parent
f64c95600c
commit
c407cc554e
18 changed files with 155 additions and 43 deletions
|
@ -43,10 +43,12 @@ impl WorkspaceBuildScripts {
|
|||
if let Some([program, args @ ..]) = config.run_build_script_command.as_deref() {
|
||||
let mut cmd = Command::new(program);
|
||||
cmd.args(args);
|
||||
cmd.envs(&config.extra_env);
|
||||
return cmd;
|
||||
}
|
||||
|
||||
let mut cmd = Command::new(toolchain::cargo());
|
||||
cmd.envs(&config.extra_env);
|
||||
|
||||
cmd.args(&["check", "--quiet", "--workspace", "--message-format=json"]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue