Skip to content

Commit

Permalink
MPIR on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Sep 15, 2024
1 parent f181abd commit 11a6662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chiavdf-1.1.5/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ fn main() {
.to_str()
.unwrap()
);

println!("cargo:rustc-link-lib=mpir");
} else {
// macOS (or other platforms): Keep it as is
println!(
Expand All @@ -58,10 +60,11 @@ fn main() {
.to_str()
.unwrap()
);

println!("cargo:rustc-link-lib=gmp");
}

println!("cargo:rustc-link-lib=static=chiavdfc");
println!("cargo:rustc-link-lib=gmp");

let bindings = bindgen::Builder::default()
.header(manifest_dir.join("wrapper.h").to_str().unwrap())
Expand Down

0 comments on commit 11a6662

Please sign in to comment.