Skip to content

Commit

Permalink
Fix vendored build
Browse files Browse the repository at this point in the history
  • Loading branch information
fatemender committed Nov 25, 2021
1 parent 1138685 commit 7b94e97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build-vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ impl BitwuzlaBuild {
.current_dir(self.out_dir.join("build")),
);

println!("cargo:rustc-link-lib=stdc++");
println!("cargo:rustc-link-search=native={}", self.out_dir.join("build/lib").display());
println!("cargo:rustc-link-lib=static=bitwuzla");
println!("cargo:rustc-link-lib=stdc++");
println!("cargo:rustc-link-lib=gmp");

self
}
Expand Down
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ fn main() {
}
}

println!("cargo:rustc-link-lib=bitwuzla");
#[cfg(not(feature = "vendor-cadical"))]
{
println!("cargo:rustc-link-lib=bitwuzla");
}
}

0 comments on commit 7b94e97

Please sign in to comment.