We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a44c59 commit 1c95788Copy full SHA for 1c95788
bindings/c/build.rs
@@ -5,6 +5,11 @@ use std::path::PathBuf;
5
const DIR_FOR_HEADER: &str = "build";
6
7
fn main() {
8
+ // linker flags
9
+ // Link libm on Unix-like systems (needed due to use of num_cpus crate)
10
+ #[cfg(not(target_os = "windows"))]
11
+ println!("cargo:rustc-link-lib=m");
12
+
13
println!("cargo:rerun-if-changed=src/");
14
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
15
let package_name = env::var("CARGO_PKG_NAME").unwrap();
0 commit comments