Skip to content

Commit 5f39411

Browse files
author
HaskellMouse
committed
Use system-cxx-std-lib virtual package
Starting with th GHC 9.4 a new virtual package `system-cxx-std-lib` have been introduced for reliable linking against the C++ standard library. related links: https://gitlab.haskell.org/ghc/ghc/-/issues/20010
1 parent 9b919c4 commit 5f39411

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

double-conversion.cabal

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ flag embedded_double_conversion
6969
default: True
7070

7171
library
72-
if os(darwin)
72+
if impl(ghc >= 9.4)
73+
build-depends: system-cxx-std-lib == 1.0
74+
75+
elif os(darwin)
7376
extra-libraries: c++
7477
elif os(windows)
7578
if arch(x86_64) && impl(ghc < 8.6.5)

0 commit comments

Comments
 (0)