Skip to content

Commit 21c2dad

Browse files
heiheramousset
authored andcommitted
Link with libcrypt32 on Windows
1 parent 80817ae commit 21c2dad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,9 @@ impl Artifacts {
686686
}
687687
println!("cargo:include={}", self.include_dir.display());
688688
println!("cargo:lib={}", self.lib_dir.display());
689-
if self.target.contains("msvc") {
689+
if self.target.contains("windows") {
690690
println!("cargo:rustc-link-lib=user32");
691+
println!("cargo:rustc-link-lib=crypt32");
691692
} else if self.target == "wasm32-wasi" {
692693
println!("cargo:rustc-link-lib=wasi-emulated-signal");
693694
println!("cargo:rustc-link-lib=wasi-emulated-process-clocks");

0 commit comments

Comments
 (0)