File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,6 @@ fn main() {
237
237
}
238
238
}
239
239
240
- if target. contains ( "pc-windows-msvc" ) {
241
- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
242
- cmd. arg ( "-C" ) . arg ( "target-feature=+crt-static" ) ;
243
- }
244
-
245
240
if let Ok ( s) = env:: var ( "RUSTC_CRT_STATIC" ) {
246
241
if s == "true" {
247
242
cmd. arg ( "-C" ) . arg ( "target-feature=+crt-static" ) ;
Original file line number Diff line number Diff line change @@ -658,8 +658,12 @@ impl Build {
658
658
659
659
/// Returns if this target should statically link the C runtime, if specified
660
660
fn crt_static ( & self , target : Interned < String > ) -> Option < bool > {
661
- self . config . target_config . get ( & target)
662
- . and_then ( |t| t. crt_static )
661
+ if target. contains ( "pc-windows-msvc" ) {
662
+ Some ( true )
663
+ } else {
664
+ self . config . target_config . get ( & target)
665
+ . and_then ( |t| t. crt_static )
666
+ }
663
667
}
664
668
665
669
/// Returns the "musl root" for this `target`, if defined
You can’t perform that action at this time.
0 commit comments