fix(cli): add back override cargo by env (#1605)
This commit is contained in:
parent
c7d6ee6e4b
commit
e60b1a599b
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ class Builder {
|
||||||
const controller = new AbortController()
|
const controller = new AbortController()
|
||||||
|
|
||||||
const buildTask = new Promise<void>((resolve, reject) => {
|
const buildTask = new Promise<void>((resolve, reject) => {
|
||||||
const command = this.options.useCross ? 'cross' : 'cargo'
|
const command =
|
||||||
|
process.env.CARGO ?? (this.options.useCross ? 'cross' : 'cargo')
|
||||||
const buildProcess = spawn(command, this.args, {
|
const buildProcess = spawn(command, this.args, {
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
|
|
Loading…
Reference in a new issue