public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup - the official Cygwin setup program] branch master, updated. release_2.907
@ 2021-04-11 18:28 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2021-04-11 18:28 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=4cdf748a589cc7005648e7da65464dc1a8fb8f24
commit 4cdf748a589cc7005648e7da65464dc1a8fb8f24
Author: Jon Turney <jon.turney@dronecode.org.uk>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-11 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-11 18:28 [setup - the official Cygwin setup program] branch master, updated. release_2.907 Jon TURNEY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).