Skip to content

Commit

Permalink
Use correct EH personality on *-windows-gnu-*
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Nov 12, 2022
1 parent 2a902a8 commit 7333ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/personality/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ cfg_if::cfg_if! {
}

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"]
Expand Down

0 comments on commit 7333ee0

Please sign in to comment.