Skip to content

Commit ca71996

Browse files
committed
WIP: Trying to set build type
1 parent 7a32f66 commit ca71996

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

snmalloc-rs/snmalloc-sys/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ fn configure_linking(config: &BuildConfig) {
426426
println!("cargo:rustc-link-lib=ws2_32");
427427
println!("cargo:rustc-link-lib=userenv");
428428
println!("cargo:rustc-link-lib=bcrypt");
429-
println!("cargo:rustc-link-lib=msvcrt");
429+
if (config.debug) {
430+
println!("cargo:rustc-link-lib=msvcrtd");
431+
} else {
432+
println!("cargo:rustc-link-lib=msvcrt");
433+
}
430434
}
431435
_ if config.is_windows() && config.is_gnu() => {
432436
println!("cargo:rustc-link-lib=kernel32");

0 commit comments

Comments
 (0)