Skip to content
Snippets Groups Projects
Commit 5576333a authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Use system-cxx-std-lib where available

Starting with the 9.4 release, GHC provides `system-cxx-std-lib`, a
"virtual" package which can be used to reliably link against the
system's C++ standard library implementation.

See GHC #20010.
parent 7be628c5
No related tags found
No related merge requests found
......@@ -90,7 +90,9 @@ library
cbits/validate_utf8.cpp
cxx-options: -std=c++17
cpp-options: -DSIMDUTF
if os(darwin) || os(freebsd)
if impl(ghc >= 9.3)
build-depends: system-cxx-std-lib
elif os(darwin) || os(freebsd)
extra-libraries: c++
elif os(openbsd)
extra-libraries: c++ c++abi pthread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment