Attempt to fix MinGW targets

This commit is contained in:
Alex Crichton 2019-04-02 12:51:36 -07:00
parent cc7567e471
commit 4c60176278
2 changed files with 12 additions and 0 deletions

View File

@ -76,5 +76,9 @@ jobs:
TARGET: x86_64-pc-windows-msvc TARGET: x86_64-pc-windows-msvc
i686-gnu: i686-gnu:
TARGET: i686-pc-windows-gnu TARGET: i686-pc-windows-gnu
INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
DEBUG_LTO_BUILD_DOESNT_WORK: 1
x86_64-gnu: x86_64-gnu:
TARGET: x86_64-pc-windows-gnu TARGET: x86_64-pc-windows-gnu
INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
DEBUG_LTO_BUILD_DOESNT_WORK: 1

View File

@ -383,3 +383,11 @@ pub fn _Unwind_Resume() {}
#[lang = "eh_personality"] #[lang = "eh_personality"]
#[no_mangle] #[no_mangle]
pub extern "C" fn eh_personality() {} pub extern "C" fn eh_personality() {}
#[cfg(all(windows, target_env = "gnu"))]
mod mingw_unwidning {
#[no_mangle]
pub fn rust_eh_personality() {}
#[no_mangle]
pub fn rust_eh_unwind_resume() {}
}