Skip to content

Commit 04171ec

Browse files
committed
Support CARGO_BUILD_TARGET
Fixes #59
1 parent 24b8262 commit 04171ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn main() -> ExitCode {
141141
// when installing locally it won't be transferred anywhere, so allow faster compression
142142
fast: install || matches.opt_present("fast"),
143143
variant: matches.opt_str("variant"),
144-
target: matches.opt_str("target"),
144+
target: matches.opt_str("target").or_else(|| std::env::var("CARGO_BUILD_TARGET").ok()),
145145
multiarch,
146146
output_path: matches.opt_str("output"),
147147
selected_package_name: matches.opt_str("package"),

0 commit comments

Comments
 (0)