We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86ec5ee commit 3b4676eCopy full SHA for 3b4676e
build.rs
@@ -17,10 +17,15 @@ fn main() {
17
println!("cargo::rustc-link-arg=/defaultlib:msvcrtd");
18
}
19
20
- // TODO: hard-coded temporarily!
+ // TODO: hard-coded temporarily! Set this based on feature flag or smth?
21
if env::var("CFLAGS").is_ok_and(|s| s.contains("/MTd")) {
22
// Always link the default CRT.
23
println!("cargo::rustc-link-arg=/nodefaultlib:msvcrt");
24
25
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
+ }
30
31
0 commit comments