Try to fix linkage on windows

master
Alex Crichton 2017-06-22 23:41:28 -07:00
parent 12a0038250
commit a4120adc69
1 changed files with 4 additions and 0 deletions

View File

@ -416,6 +416,10 @@ pub fn _start() -> ! {
loop {} loop {}
} }
#[cfg(windows)]
#[link(name = "kernel32")]
extern {}
// ARM targets need these symbols // ARM targets need these symbols
#[no_mangle] #[no_mangle]
pub fn __aeabi_unwind_cpp_pr0() {} pub fn __aeabi_unwind_cpp_pr0() {}