[clang] clang: Forward exception_model flag for bitcode inputs (PR #146342)
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 2 02:46:44 PDT 2025
mstorsjo wrote:
> > This broke building C++ modules for mingw targets. Repro:
> > `empty.cppm`:
> > ```c++
> > export module empty;
> > ```
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ```
> > $ clang -target x86_64-windows-gnu -x c++-module empty.cppm -c -o empty.cppm.obj -std=gnu++23
> > error: invalid value 'seh' in '-exception-model=seh'
> > ```
>
> #146643
>
> I for some reason have to repeat the reproducer exactly this way; if I just run cc1 with the same triple and flags it seems to work?
Yeah, I have no idea what's being passed through at what level here, but the fix looks reasonable to me. Thanks!
https://github.com/llvm/llvm-project/pull/146342
More information about the cfe-commits
mailing list