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 487c2dd commit f893d64Copy full SHA for f893d64
library/core/src/lib.rs
@@ -178,6 +178,7 @@
178
#![feature(ip_bits)]
179
#![feature(is_ascii_octdigit)]
180
#![feature(isqrt)]
181
+#![feature(link_cfg)]
182
#![feature(maybe_uninit_uninit_array)]
183
#![feature(non_null_convenience)]
184
#![feature(offset_of_enum)]
@@ -468,3 +469,12 @@ pub mod simd {
468
469
}
470
471
include!("primitive_docs.rs");
472
+
473
+#[cfg(all(windows, target_env = "msvc"))]
474
+#[link(
475
+ name = "/defaultlib:msvcrt",
476
+ modifiers = "+verbatim",
477
+ cfg(not(target_feature = "crt-static"))
478
+)]
479
+#[link(name = "/defaultlib:libcmt", modifiers = "+verbatim", cfg(target_feature = "crt-static"))]
480
+extern "C" {}
0 commit comments