Skip to content

Commit

Permalink
Merge Dev (#250)
Browse files Browse the repository at this point in the history
* Update build.rs

Fixed x86 lib fetch for Rust
  • Loading branch information
luadebug authored Aug 17, 2024
1 parent 84e6344 commit 3483e4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bindings/rust/libmem-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ fn download_and_resolve_libmem() {
let version = env::var("CARGO_PKG_VERSION").unwrap();
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
let os_name = env::var("CARGO_CFG_TARGET_OS").unwrap();
let arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
let mut arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();

if arch == "x86" {
arch = "i686".to_string();
}
let target_env = if target_os == "linux" && cfg!(feature = "static") {
// Always use musl for static linking on Linux
"musl".to_owned()
Expand Down

0 comments on commit 3483e4e

Please sign in to comment.