Skip to content

Commit

Permalink
Use system-cxx-std-lib GHC>=9.4 instead of dispatching between libstd…
Browse files Browse the repository at this point in the history
…c++ and libc++
  • Loading branch information
twesterhout authored and bitonic committed Jul 15, 2023
1 parent d15196e commit e8dc553
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inline-c-cpp/inline-c-cpp.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ common cxx-opts
-std=c++11
-Wall

if os(linux)
-- Linking to the C++ standard library
if impl(ghc >= 9.4)
build-depends: system-cxx-std-lib == 1.0
elif os(linux)
extra-libraries: stdc++

if os(darwin)
elif os(darwin)
extra-libraries: c++
-- avoid https://gitlab.haskell.org/ghc/ghc/issues/11829
ld-options: -Wl,-keep_dwarf_unwind
Expand Down

0 comments on commit e8dc553

Please sign in to comment.