From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id AA31C385800F; Sun, 11 Apr 2021 18:28:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA31C385800F To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.907 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d4527e2a3b55874b40e1286c7e390fabf7102b07 X-Git-Newrev: 4cdf748a589cc7005648e7da65464dc1a8fb8f24 Message-Id: <20210411182831.AA31C385800F@sourceware.org> Date: Sun, 11 Apr 2021 18:28:31 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2021 18:28:31 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=4cdf748a589cc7005648e7da65464dc1a8fb8f24 commit 4cdf748a589cc7005648e7da65464dc1a8fb8f24 Author: Jon Turney 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