Move msvc libs to core

This commit is contained in:
Chris Denton 2024-03-10 04:57:45 +00:00
parent b1f1039d8b
commit 87e1dd0dfd
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 11 additions and 0 deletions

View File

@ -609,3 +609,13 @@ extern "rust-intrinsic" {
#[rustc_nounwind]
fn va_arg<T: sealed_trait::VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
}
// Link the MSVC default lib
#[cfg(all(windows, target_env = "msvc"))]
#[link(
name = "/defaultlib:msvcrt",
modifiers = "+verbatim",
cfg(not(target_feature = "crt-static"))
)]
#[link(name = "/defaultlib:libcmt", modifiers = "+verbatim", cfg(target_feature = "crt-static"))]
extern "C" {}

View File

@ -178,6 +178,7 @@
#![feature(ip_bits)]
#![feature(is_ascii_octdigit)]
#![feature(isqrt)]
#![feature(link_cfg)]
#![feature(maybe_uninit_uninit_array)]
#![feature(non_null_convenience)]
#![feature(offset_of_enum)]