Skip to content

Commit

Permalink
Merge pull request #411 from stoically/cargo-build-target-env
Browse files Browse the repository at this point in the history
Support CARGO_BUILD_TARGET triple env
  • Loading branch information
kjvalencik authored Aug 22, 2019
2 parents d043ea1 + 5cdf145 commit e24e480
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e24e480

Please sign in to comment.