[setup - the official Cygwin setup program] branch master, updated. release_2.907
Jon TURNEY via Cygwin-apps-cvs <[email protected]>
| Newsgroups | gmane.os.cygwin.cvs.apps |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=4cdf748a589cc7005648e7da65464dc1a8fb8f24 commit 4cdf748a589cc7005648e7da65464dc1a8fb8f24 Author: Jon Turney <[email protected]> Date: Sun Apr 11 16:52:05 2021 +0100 Check compiler exception handling model during configure Since F32, Fedora ships a MinGW x86 compiler which uses DW2 exception handling [1]. This does not support throwing exceptions from Windows callbacks, which we use. [1] https://fedoraproject.org/wiki/Changes/Mingw32GccDwarf2 Diff: --- .github/workflows/fedora.yml | 2 +- configure.ac | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml index f732d296..e070d305 100644 --- a/.github/workflows/fedora.yml +++ b/.github/workflows/fedora.yml @@ -6,7 +6,7 @@ jobs: fedora-build: name: Fedora runs-on: ubuntu-latest - container: fedora:latest + container: fedora:31 steps: # install git, so checkout uses git to fetch repository, so 'git describe' works - name: Install git diff --git a/configure.ac b/configure.ac index ab6f3ff6..6c06ba4d 100644 --- a/configure.ac +++ b/configure.ac @@ -80,5 +80,19 @@ esac AC_SUBST(SETUP) AC_SUBST(ARCH) +dnl check exception personality +AC_MSG_CHECKING([compiler exception personality]) +AC_LANG([C++]) +AC_COMPILE_IFELSE( + [AC_LANG_SOURCE([ +#ifdef _X86_ +#ifndef __USING_SJLJ_EXCEPTIONS__ +#error not using sjlj exceptions +#endif +#endif + ])], + [AC_MSG_RESULT([ok])], + [AC_MSG_FAILURE([Must not be built with a compiler which uses dwarf2 exception handling])]) + AC_CONFIG_FILES([Makefile tests/Makefile]) AC_OUTPUT