File tree 1 file changed +3
-1
lines changed
src/tools/miri/src/shims/unix
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
649
649
// For arm32 they did something custom, but similar enough that the same
650
650
// `_Unwind_RaiseException` impl in miri should work:
651
651
// https://github.com/ARM-software/abi-aa/blob/main/ehabi32/ehabi32.rst
652
- if !matches ! ( & * this. tcx. sess. target. os, "linux" | "freebsd" | "illumos" | "solaris" | "android" | "macos" ) {
652
+ // MinGW implements _Unwind_RaiseException on top of SEH exceptions.
653
+ if !matches ! ( & * this. tcx. sess. target. os, "linux" | "freebsd" | "illumos" | "solaris" | "android" | "macos" )
654
+ && !( this. tcx . sess . target . os == "windows" && this. tcx . sess . target . env == "gnu" ) {
653
655
throw_unsup_format ! (
654
656
"`_Unwind_RaiseException` is not supported on {}" ,
655
657
this. tcx. sess. target. os
You can’t perform that action at this time.
0 commit comments