On 2/1/22 13:57, Paul Gofman wrote:
Not sure though if that is good enough though, the prior understanding was that these sort of fixes are waiting for mingw .seh support.
It's not just SEH support that's missing in mingw (in fact, GCC mingw already supports SEH on x86_64 and llvm-mingw on all targets), but it'd also need some sort of __try/__except support (or something similar), which is not present in GCC.
clang already supports it on all targets. I gave it a try when I was working on clang support and it looked promising. Back then, I decided to put it aside until clang builds are generally in a better shape. I just gave it another quick look and with the attached patch, I was able to build x64_64 Wine. Unfortunately it fails to run iexplore (my quick test), so there is more work needed. If you'd like to give it a try, use something like this for configure:
configure CROSSCC=clang CROSSCFLAGS="-g -O2 -DUSE_COMPILER_EXCEPTIONS" --enable-win64
Jacek