Skip to content

Commit

Permalink
Link with libcrypt32 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher authored and amousset committed Dec 8, 2023
1 parent 80817ae commit 21c2dad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,9 @@ impl Artifacts {
}
println!("cargo:include={}", self.include_dir.display());
println!("cargo:lib={}", self.lib_dir.display());
if self.target.contains("msvc") {
if self.target.contains("windows") {
println!("cargo:rustc-link-lib=user32");
println!("cargo:rustc-link-lib=crypt32");
} else if self.target == "wasm32-wasi" {
println!("cargo:rustc-link-lib=wasi-emulated-signal");
println!("cargo:rustc-link-lib=wasi-emulated-process-clocks");
Expand Down

0 comments on commit 21c2dad

Please sign in to comment.