diff --git a/cli/src/api/build.ts b/cli/src/api/build.ts index 57a51ca9..f3a16446 100644 --- a/cli/src/api/build.ts +++ b/cli/src/api/build.ts @@ -150,7 +150,8 @@ class Builder { const controller = new AbortController() const buildTask = new Promise((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, { env: { ...process.env,