From cc53807fe263060ecf76848a0c9ff61717762f77 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 10 Jan 2023 04:30:49 +0000 Subject: [PATCH] fix(cli): CARGO env var (#1426) --- cli/src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index ad6dce52..fe8059f4 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -285,7 +285,7 @@ export class BuildCommand extends Command { })()) const isCrossForMacOS = triple.platform === 'darwin' && process.platform !== 'darwin' - const cargo = process.env.CARGO ?? isCrossForWin ? 'cargo-xwin' : 'cargo' + const cargo = process.env.CARGO ?? (isCrossForWin ? 'cargo-xwin' : 'cargo') if (isCrossForWin && triple.arch === 'ia32') { additionalEnv['XWIN_ARCH'] = 'x86' }