From 79403379c0dfec023696a0f06b5debe0a24e5d3c Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 1 Apr 2022 16:27:13 +0200 Subject: [PATCH] Add -fcompact-unwind for darwin exceptions --- inline-c-cpp/inline-c-cpp.cabal | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inline-c-cpp/inline-c-cpp.cabal b/inline-c-cpp/inline-c-cpp.cabal index 0a7ca13..1ec6667 100644 --- a/inline-c-cpp/inline-c-cpp.cabal +++ b/inline-c-cpp/inline-c-cpp.cabal @@ -10,7 +10,7 @@ author: Francesco Mazzoli maintainer: f@mazzo.li copyright: (c) 2015-2016 FP Complete Corporation, (c) 2017-2019 Francesco Mazzoli category: FFI -tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2 +tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2, GHC == 9.2.2 build-type: Simple extra-source-files: test/*.h @@ -47,6 +47,11 @@ common cxx-opts extra-libraries: c++ -- avoid https://gitlab.haskell.org/ghc/ghc/issues/11829 ld-options: -Wl,-keep_dwarf_unwind + -- Same issue, new fix https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7247 + -- Probably will be redundant in >=9.4 https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7423 + if impl(ghc >= 9.2.2 && < 9.4) + ghc-options: + -fcompact-unwind if impl(ghc >= 8.10) ghc-options: