Failure to catch C++ exception in Haskell on OS X
Bas van Dijk
v.dijk.bas at gmail.com
Sat Jan 5 02:29:04 UTC 2019
On Fri, 4 Jan 2019 at 23:46, Adam Sandberg Eriksson
<adam at sandbergericsson.se> wrote:
> A ticket which seems to cover the same problem: https://ghc.haskell.org/trac/ghc/ticket/11829
Wonderful! I can confirm[1] that adding the following to the cabal
file fixes the problem:
if os(darwin)
ld-options: -Wl,-keep_dwarf_unwind
Shouldn't GHC do this by default when linking on OS X?
Bas
[1] https://github.com/basvandijk/darwin-cxx-exception-bug/commit/9b48441606d2fe364c2a21a4ca8ba6b7ff735fe5
More information about the ghc-devs
mailing list