feat: Use CARGO_BUILD_TARGET as fallback for --target (#2075)

* feat: Use `CARGO_BUILD_TARGET` as fallback for `--target`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix e2e-tests: Unset CARGO_BUILD_TARGET before running e2e-tests

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2025-03-07 23:18:15 +10:00 committed by GitHub
parent 451450603f
commit 268efdf6e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -88,7 +88,8 @@ pub struct Args {
help_heading = "Package selection",
alias = "target",
long,
value_name = "TRIPLE"
value_name = "TRIPLE",
env = "CARGO_BUILD_TARGET"
)]
pub(crate) targets: Option<Vec<String>>,