Skip to content

Commit b03bf4d

Browse files
committed
Fix build on Windows.
1 parent 9b86ded commit b03bf4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ fn main() {
2626
if Ok("macos") == env::var("CARGO_CFG_TARGET_OS").as_deref() {
2727
println!("cargo:rustc-link-lib=c");
2828
}
29+
30+
if Ok("windows") == env::var("CARGO_CFG_TARGET_OS").as_deref() {
31+
println!("cargo:rustc-link-lib=dylib=msvcrt");
32+
}
2933
}

0 commit comments

Comments
 (0)