Skip to content

Commit 3483e4e

Browse files
authored
Merge Dev (#250)
* Update build.rs Fixed x86 lib fetch for Rust
1 parent 84e6344 commit 3483e4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bindings/rust/libmem-sys/build.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ fn download_and_resolve_libmem() {
1818
let version = env::var("CARGO_PKG_VERSION").unwrap();
1919
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
2020
let os_name = env::var("CARGO_CFG_TARGET_OS").unwrap();
21-
let arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
21+
let mut arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
22+
23+
if arch == "x86" {
24+
arch = "i686".to_string();
25+
}
2226
let target_env = if target_os == "linux" && cfg!(feature = "static") {
2327
// Always use musl for static linking on Linux
2428
"musl".to_owned()

0 commit comments

Comments
 (0)