We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97543b7 commit 25f4663Copy full SHA for 25f4663
core/src/ffi/mod.rs
@@ -609,3 +609,13 @@ extern "rust-intrinsic" {
609
#[rustc_nounwind]
610
fn va_arg<T: sealed_trait::VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
611
}
612
+
613
+// Link the MSVC default lib
614
+#[cfg(all(windows, target_env = "msvc"))]
615
+#[link(
616
+ name = "/defaultlib:msvcrt",
617
+ modifiers = "+verbatim",
618
+ cfg(not(target_feature = "crt-static"))
619
+)]
620
+#[link(name = "/defaultlib:libcmt", modifiers = "+verbatim", cfg(target_feature = "crt-static"))]
621
+extern "C" {}
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