fix(cli): respect CARGO_BUILD_TARGET env variable
This commit is contained in:
parent
11967dec79
commit
bd08787270
1 changed files with 7 additions and 3 deletions
|
@ -88,9 +88,13 @@ export class BuildCommand extends Command {
|
||||||
)} field in ${chalk.underline(chalk.yellowBright('Cargo.toml'))}`,
|
)} field in ${chalk.underline(chalk.yellowBright('Cargo.toml'))}`,
|
||||||
})
|
})
|
||||||
|
|
||||||
targetTripleDir = Option.String('--target', process.env.RUST_TARGET ?? '', {
|
targetTripleDir = Option.String(
|
||||||
|
'--target',
|
||||||
|
process.env.RUST_TARGET ?? process.env.CARGO_BUILD_TARGET ?? '',
|
||||||
|
{
|
||||||
description: `Bypass to ${chalk.green('cargo build --target')}`,
|
description: `Bypass to ${chalk.green('cargo build --target')}`,
|
||||||
})
|
},
|
||||||
|
)
|
||||||
|
|
||||||
features?: string = Option.String('--features', {
|
features?: string = Option.String('--features', {
|
||||||
description: `Bypass to ${chalk.green('cargo build --features')}`,
|
description: `Bypass to ${chalk.green('cargo build --features')}`,
|
||||||
|
|
Loading…
Reference in a new issue