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 @@ -207,11 +207,6 @@ fn main() {
207
207
}
208
208
}
209
209
210
- if target. contains ( "pc-windows-msvc" ) {
211
- cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
212
- cmd. arg ( "-C" ) . arg ( "target-feature=+crt-static" ) ;
213
- }
214
-
215
210
if let Ok ( s) = env:: var ( "RUST_CRT_STATIC" ) {
216
211
if s == "true" {
217
212
cmd. arg ( "-Z" ) . arg ( "unstable-options" ) ;
Original file line number Diff line number Diff line change @@ -886,8 +886,12 @@ impl Build {
886
886
887
887
/// Returns if this target should statically link the C runtime, if specified
888
888
fn crt_static ( & self , target : & str ) -> Option < bool > {
889
- self . config . target_config . get ( target)
890
- . and_then ( |t| t. crt_static )
889
+ if target. contains ( "pc-windows-msvc" ) {
890
+ Some ( true )
891
+ } else {
892
+ self . config . target_config . get ( target)
893
+ . and_then ( |t| t. crt_static )
894
+ }
891
895
}
892
896
893
897
/// Returns the "musl root" for this `target`, if defined
You can’t perform that action at this time.
0 commit comments