From 5cdf1450d7863083c9db7694cce17fc4223b2294 Mon Sep 17 00:00:00 2001 From: stoically Date: Wed, 15 May 2019 16:08:14 +0200 Subject: [PATCH] Support CARGO_BUILD_TARGET env --- cli/src/target.ts | 4 ++++ 1 file changed, 4 insertions(+) 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);