Skip to content

Commit

Permalink
fix(cli): CARGO env var (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 10, 2023
1 parent 3d3fa53 commit cc53807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit cc53807

Please sign in to comment.