Skip to content

Commit 3b4676e

Browse files
committed
Add more temporary workarounds
1 parent 86ec5ee commit 3b4676e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ fn main() {
1717
println!("cargo::rustc-link-arg=/defaultlib:msvcrtd");
1818
}
1919

20-
// TODO: hard-coded temporarily!
20+
// TODO: hard-coded temporarily! Set this based on feature flag or smth?
2121
if env::var("CFLAGS").is_ok_and(|s| s.contains("/MTd")) {
2222
// Always link the default CRT.
2323
println!("cargo::rustc-link-arg=/nodefaultlib:msvcrt");
2424
}
25+
// TODO: hard-coded temporarily! Set this based on feature flag or smth?
26+
if env::var("CFLAGS").is_ok_and(|s| s.contains("/MT")) {
27+
// Always link the default CRT.
28+
println!("cargo::rustc-link-arg=/nodefaultlib:msvcrt");
29+
}
2530
}
2631
}

0 commit comments

Comments
 (0)