Skip to content

Commit

Permalink
Add -fcompact-unwind for darwin exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth authored and junjihashimoto committed Sep 28, 2023
1 parent 91667de commit 7940337
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inline-c-cpp/inline-c-cpp.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ author: Francesco Mazzoli
maintainer: [email protected]
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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7940337

Please sign in to comment.