mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Set RUSTC_SYSROOT for runnables
This commit is contained in:
parent
2346a80ab4
commit
33ce9a4211
8 changed files with 59 additions and 43 deletions
|
@ -125,7 +125,7 @@ export async function targetToExecution(
|
|||
let command, args;
|
||||
if (isCargoTask(definition)) {
|
||||
// FIXME: The server should provide cargo
|
||||
command = cargo || (await toolchain.cargoPath());
|
||||
command = cargo || (await toolchain.cargoPath(options?.env));
|
||||
args = [definition.command].concat(definition.args || []);
|
||||
} else {
|
||||
command = definition.command;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue