Skip to content

Commit 6e31d15

Browse files
authored
Merge pull request #28 from stefthedrummer/feature-bundled_use-target-os+arch-instead-of-host
bundled.rs: use target os and arch instead of host
2 parents 4c735ce + 0245f02 commit 6e31d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundled.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pub fn download_scip() {
1919
return;
2020
}
2121

22-
let os = env::consts::OS;
23-
let arch = std::env::consts::ARCH;
22+
let os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
23+
let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();
2424
println!("cargo:warning=Detected OS: {}", os);
2525
println!("cargo:warning=Detected arch: {}", arch);
2626

0 commit comments

Comments
 (0)