diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index a7bdd579..e8c4b860 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -1,11 +1,8 @@ use std::env; fn main() { - let lib_path = if cfg!(windows) { - format!("{}{}", env::var("ProgramFiles").unwrap(), "\\libmem\\lib") - } else { - String::from("/usr/lib") + if cfg!(windows) { + let lib_path = format!("{}{}", env::var("ProgramFiles").unwrap(), "\\libmem\\lib"); + println!("cargo:rustc-link-search={}", lib_path); }; - - println!("cargo:rustc-link-search={}", lib_path); }