public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org>
To: cygwin-apps-cvs@sourceware.org
Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.907
Date: Sun, 11 Apr 2021 18:28:31 +0000 (GMT)	[thread overview]
Message-ID: <20210411182831.AA31C385800F@sourceware.org> (raw)




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



                 reply	other threads:[~2021-04-11 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210411182831.AA31C385800F@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).