diff --git a/cli/src/target.ts b/cli/src/target.ts index bf1aea07c..02a983f12 100644 --- a/cli/src/target.ts +++ b/cli/src/target.ts @@ -48,6 +48,10 @@ export default class Target { this.triple = ''; } + if (process.env.CARGO_BUILD_TARGET) { + this.triple = process.env.CARGO_BUILD_TARGET; + } + this.subdirectory = path.join(this.triple, release ? 'release' : 'debug'); this.root = path.resolve(crate.root, 'target', this.subdirectory);