We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 164ec5f commit 94458a6Copy full SHA for 94458a6
library/core/src/ffi/mod.rs
@@ -599,3 +599,13 @@ extern "rust-intrinsic" {
599
#[rustc_nounwind]
600
fn va_arg<T: sealed_trait::VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
601
}
602
+
603
+// Link the MSVC default lib
604
+#[cfg(all(windows, target_env = "msvc"))]
605
+#[link(
606
+ name = "/defaultlib:msvcrt",
607
+ modifiers = "+verbatim",
608
+ cfg(not(target_feature = "crt-static"))
609
+)]
610
+#[link(name = "/defaultlib:libcmt", modifiers = "+verbatim", cfg(target_feature = "crt-static"))]
611
+extern "C" {}
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)]
0 commit comments