From 2702002779456b8fd59485c9f1b8b1f38cec45e3 Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 30 Oct 2024 15:05:13 -0700 Subject: [PATCH] Match up to cmake changes --- rust_bindings/build.rs | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/rust_bindings/build.rs b/rust_bindings/build.rs index 5e5ba211..f0b143b5 100644 --- a/rust_bindings/build.rs +++ b/rust_bindings/build.rs @@ -28,23 +28,16 @@ fn main() { println!("cargo:rustc-link-lib=static=chiavdfc"); - if cfg!(target_os = "windows") { - let build_type = if cfg!(debug_assertions) { - "Debug" - } else { - "Release" - }; - - println!( - "cargo:rustc-link-search=native={}", - dst.join("build") - .join("lib") - .join("static") - .join(build_type) - .to_str() - .unwrap() - ); + println!( + "cargo:rustc-link-search=native={}", + dst.join("build") + .join("lib") + .join("static") + .to_str() + .unwrap() + ); + if cfg!(target_os = "windows") { println!("cargo:rustc-link-lib=static=mpir"); println!( "cargo:rustc-link-search=native={}", @@ -56,15 +49,6 @@ fn main() { .unwrap() ); } else { - println!( - "cargo:rustc-link-search=native={}", - dst.join("build") - .join("lib") - .join("static") - .to_str() - .unwrap() - ); - println!("cargo:rustc-link-lib=gmp"); }