From 4c60176278c2fb320ba4e7483888b3c53cb86e5b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 2 Apr 2019 12:51:36 -0700 Subject: [PATCH] Attempt to fix MinGW targets --- azure-pipelines.yml | 4 ++++ examples/intrinsics.rs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8df6e64..da3a1bb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -76,5 +76,9 @@ jobs: TARGET: x86_64-pc-windows-msvc i686-gnu: TARGET: i686-pc-windows-gnu + INTRINSICS_FAILS_WITH_MEM_FEATURE: 1 + DEBUG_LTO_BUILD_DOESNT_WORK: 1 x86_64-gnu: TARGET: x86_64-pc-windows-gnu + INTRINSICS_FAILS_WITH_MEM_FEATURE: 1 + DEBUG_LTO_BUILD_DOESNT_WORK: 1 diff --git a/examples/intrinsics.rs b/examples/intrinsics.rs index 89c2c23..7766687 100644 --- a/examples/intrinsics.rs +++ b/examples/intrinsics.rs @@ -383,3 +383,11 @@ pub fn _Unwind_Resume() {} #[lang = "eh_personality"] #[no_mangle] 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() {} +}