We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b8262 commit 04171ecCopy full SHA for 04171ec
src/main.rs
@@ -141,7 +141,7 @@ fn main() -> ExitCode {
141
// when installing locally it won't be transferred anywhere, so allow faster compression
142
fast: install || matches.opt_present("fast"),
143
variant: matches.opt_str("variant"),
144
- target: matches.opt_str("target"),
+ target: matches.opt_str("target").or_else(|| std::env::var("CARGO_BUILD_TARGET").ok()),
145
multiarch,
146
output_path: matches.opt_str("output"),
147
selected_package_name: matches.opt_str("package"),
0 commit comments