Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't link against libgcc_s on Windows with GHC 9.4 and later #429

Merged
merged 2 commits into from Apr 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions text.cabal
Expand Up @@ -94,7 +94,13 @@ library
extra-libraries: c++
elif os(openbsd)
extra-libraries: c++ c++abi pthread
elif os(linux) || os(windows)
elif os(windows)
-- GHC's Windows toolchain is based on clang/libc++ in GHC 9.4 and later
if impl(ghc < 9.3)
extra-libraries: stdc++
else
extra-libraries: c++ c++abi
elif os(linux)
extra-libraries: stdc++
else
-- This is supposed to be under arch(wasm32), but we can't do that yet
Expand Down Expand Up @@ -188,7 +194,7 @@ library
ghc-options: -fcheck-prim-bounds

-- https://gitlab.haskell.org/ghc/ghc/-/issues/19900
if os(windows)
if os(windows) && impl(ghc < 9.3)
extra-libraries: gcc_s

default-language: Haskell2010
Expand Down