Use correct EH personality on *-windows-gnu-*

This commit is contained in:
Mateusz Mikuła 2022-11-01 12:57:34 +01:00
parent 2a902a8857
commit 7333ee092b

View File

@ -219,7 +219,7 @@ fn __gnu_unwind_frame(
}
cfg_if::cfg_if! {
if #[cfg(all(windows, target_arch = "x86_64", target_env = "gnu"))] {
if #[cfg(all(windows, any(target_arch = "aarch64", target_arch = "x86_64"), target_env = "gnu"))] {
// On x86_64 MinGW targets, the unwinding mechanism is SEH however the unwind
// handler data (aka LSDA) uses GCC-compatible encoding.
#[lang = "eh_personality"]