fix(cli): CARGO env var (#1426)
This commit is contained in:
parent
3d3fa533d9
commit
cc53807fe2
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue