File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,13 @@ fn copy_self_contained_objects(
196
196
"crt1.o" ,
197
197
& mut target_deps,
198
198
) ;
199
+ } else if target. contains ( "windows-gnu" ) {
200
+ for obj in [ "crt2.o" , "dllcrt2.o" ] . iter ( ) {
201
+ let src = compiler_file ( builder, builder. cc ( target) , target, obj) ;
202
+ let target = libdir. join ( obj) ;
203
+ builder. copy ( & src, & target) ;
204
+ target_deps. push ( target) ;
205
+ }
199
206
}
200
207
201
208
target_deps
@@ -419,13 +426,6 @@ impl Step for StartupObjects {
419
426
target_deps. push ( target) ;
420
427
}
421
428
422
- for obj in [ "crt2.o" , "dllcrt2.o" ] . iter ( ) {
423
- let src = compiler_file ( builder, builder. cc ( target) , target, obj) ;
424
- let target = sysroot_dir. join ( obj) ;
425
- builder. copy ( & src, & target) ;
426
- target_deps. push ( target) ;
427
- }
428
-
429
429
target_deps
430
430
}
431
431
}
You can’t perform that action at this time.
0 commit comments