diff options
| author | Berrysoft <Strawberry_Str@hotmail.com> | 2025-03-12 15:48:05 +0800 |
|---|---|---|
| committer | Berrysoft <Strawberry_Str@hotmail.com> | 2025-03-12 15:48:05 +0800 |
| commit | bd385f3064f558d4bba19a0447f8b08208915dc9 (patch) | |
| tree | 79c01b378118d4484e20c447a8879d41ff42f245 /library/std/src | |
| parent | 9cab8c25dc3c7c1cac7475568161b3b4fc34a88f (diff) | |
Fix panic handler for cygwin
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/personality/gcc.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/std/src/sys/personality/gcc.rs b/library/std/src/sys/personality/gcc.rs index cd2c7899f4b..ad96774f39c 100644 --- a/library/std/src/sys/personality/gcc.rs +++ b/library/std/src/sys/personality/gcc.rs @@ -248,7 +248,10 @@ cfg_if::cfg_if! { } cfg_if::cfg_if! { - if #[cfg(all(windows, any(target_arch = "aarch64", target_arch = "x86_64"), target_env = "gnu"))] { + if #[cfg(any( + all(windows, any(target_arch = "aarch64", target_arch = "x86_64"), target_env = "gnu"), + target_os = "cygwin", + ))] { /// personality fn called by [Windows Structured Exception Handling][windows-eh] /// /// On x86_64 and AArch64 MinGW targets, the unwinding mechanism is SEH, |
