Skip to content

Commit

Permalink
Support CARGO_BUILD_TARGET
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
kornelski committed Jan 6, 2025
1 parent 24b8262 commit 04171ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn main() -> ExitCode {
// when installing locally it won't be transferred anywhere, so allow faster compression
fast: install || matches.opt_present("fast"),
variant: matches.opt_str("variant"),
target: matches.opt_str("target"),
target: matches.opt_str("target").or_else(|| std::env::var("CARGO_BUILD_TARGET").ok()),
multiarch,
output_path: matches.opt_str("output"),
selected_package_name: matches.opt_str("package"),
Expand Down

0 comments on commit 04171ec

Please sign in to comment.