Skip to content

Commit 4c60176

Browse files
committed
Attempt to fix MinGW targets
1 parent cc7567e commit 4c60176

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,9 @@ jobs:
7676
TARGET: x86_64-pc-windows-msvc
7777
i686-gnu:
7878
TARGET: i686-pc-windows-gnu
79+
INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
80+
DEBUG_LTO_BUILD_DOESNT_WORK: 1
7981
x86_64-gnu:
8082
TARGET: x86_64-pc-windows-gnu
83+
INTRINSICS_FAILS_WITH_MEM_FEATURE: 1
84+
DEBUG_LTO_BUILD_DOESNT_WORK: 1

examples/intrinsics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,3 +383,11 @@ pub fn _Unwind_Resume() {}
383383
#[lang = "eh_personality"]
384384
#[no_mangle]
385385
pub extern "C" fn eh_personality() {}
386+
387+
#[cfg(all(windows, target_env = "gnu"))]
388+
mod mingw_unwidning {
389+
#[no_mangle]
390+
pub fn rust_eh_personality() {}
391+
#[no_mangle]
392+
pub fn rust_eh_unwind_resume() {}
393+
}

0 commit comments

Comments
 (0)