File tree 3 files changed +6
-4
lines changed
librustc_codegen_ssa/back
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ unsafe fn find_eh_action(
324
324
// See docs in the `unwind` module. This needs to be implemented in assembly
325
325
// because _Unwind_Resume expects to be called directly from the landing pad.
326
326
// This means that we need to force a tail call here.
327
- #[ cfg( all(
327
+ /* #[cfg(all(
328
328
not(bootstrap),
329
329
target_os = "windows",
330
330
any(target_arch = "x86", target_arch = "x86_64"),
@@ -343,7 +343,7 @@ _rust_eh_unwind_resume:
343
343
jmp __Unwind_Resume
344
344
.cfi_endproc
345
345
"#
346
- }
346
+ }*/
347
347
#[ cfg( all(
348
348
bootstrap,
349
349
target_os = "windows" ,
Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
490
490
info ! ( "preparing {:?} to {:?}" , crate_type, out_filename) ;
491
491
let ( linker, flavor) = linker_and_flavor ( sess) ;
492
492
493
- let any_dynamic_crate =
494
- codegen_results. crate_info . dependency_formats . iter ( ) . any ( |( ty, list) | {
493
+ let any_dynamic_crate = crate_type == config :: CrateType :: Dylib
494
+ || codegen_results. crate_info . dependency_formats . iter ( ) . any ( |( ty, list) | {
495
495
* ty == crate_type && list. iter ( ) . any ( |& linkage| linkage == Linkage :: Dynamic )
496
496
} ) ;
497
497
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ pub fn opts() -> TargetOptions {
46
46
// unwinding across DLL boundaries.
47
47
"-lgcc_s" . to_string( ) ,
48
48
"-lgcc" . to_string( ) ,
49
+ "-lkernel32" . to_string( ) ,
49
50
] ,
50
51
) ;
51
52
late_link_args_static. insert (
@@ -59,6 +60,7 @@ pub fn opts() -> TargetOptions {
59
60
"-lgcc" . to_string( ) ,
60
61
"-lgcc_eh" . to_string( ) ,
61
62
"-lpthread" . to_string( ) ,
63
+ "-lkernel32" . to_string( ) ,
62
64
] ,
63
65
) ;
64
66
You can’t perform that action at this time.
0 commit comments