File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -599,3 +599,13 @@ extern "rust-intrinsic" {
599
599
#[ rustc_nounwind]
600
600
fn va_arg < T : sealed_trait:: VaArgSafe > ( ap : & mut VaListImpl < ' _ > ) -> T ;
601
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" { }
Original file line number Diff line number Diff line change 178
178
#![ feature( ip_bits) ]
179
179
#![ feature( is_ascii_octdigit) ]
180
180
#![ feature( isqrt) ]
181
+ #![ feature( link_cfg) ]
181
182
#![ feature( maybe_uninit_uninit_array) ]
182
183
#![ feature( non_null_convenience) ]
183
184
#![ feature( offset_of_enum) ]
You can’t perform that action at this time.
0 commit comments