feat(cli): allow specifying an alternative cargo binary via CARGO
env var (#1181)
This commit is contained in:
parent
d6c755c4eb
commit
1399288df5
1 changed files with 2 additions and 1 deletions
|
@ -258,7 +258,8 @@ export class BuildCommand extends Command {
|
|||
]
|
||||
.filter((flag) => Boolean(flag))
|
||||
.join(' ')
|
||||
const cargoCommand = `cargo build ${externalFlags}`
|
||||
const cargo = process.env.CARGO ?? 'cargo'
|
||||
const cargoCommand = `${cargo} build ${externalFlags}`
|
||||
const intermediateTypeFile = join(tmpdir(), `type_def.${Date.now()}.tmp`)
|
||||
debug(`Run ${chalk.green(cargoCommand)}`)
|
||||
const additionalEnv = {}
|
||||
|
|
Loading…
Reference in a new issue