File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed 
src/tools/miri/src/shims/unix Expand file tree Collapse file tree 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> {
649649                // For arm32 they did something custom, but similar enough that the same 
650650                // `_Unwind_RaiseException` impl in miri should work: 
651651                // 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" )  { 
653655                    throw_unsup_format ! ( 
654656                        "`_Unwind_RaiseException` is not supported on {}" , 
655657                        this. tcx. sess. target. os
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments