Skip to content

Commit

Permalink
Don't link against libgcc on Windows with GHC 9.4+ (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Apr 28, 2022
1 parent f46c020 commit acfe934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bytestring.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ library
-- DNDEBUG disables asserts in cbits/
cc-options: -std=c11 -DNDEBUG=1

if os(windows)
-- No need to link to libgcc on ghc-9.4 and later which uses a clang-based
-- toolchain.
if os(windows) && impl(ghc < 9.3)
extra-libraries: gcc

include-dirs: include
Expand Down

0 comments on commit acfe934

Please sign in to comment.