Set RUSTC_SYSROOT for runnables

This commit is contained in:
Lukas Wirth 2024-07-16 13:35:14 +02:00
parent 2346a80ab4
commit 33ce9a4211
8 changed files with 59 additions and 43 deletions

View file

@ -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;