Skip to content

Commit

Permalink
[rust] Remove explicit link search path for non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LeadRDRK committed Feb 17, 2024
1 parent 6fc27b3 commit 589613c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 589613c

Please sign in to comment.