From acfe93480a15ecd373a5de5e423b1460749e52e1 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 27 Apr 2022 20:24:29 -0400 Subject: [PATCH] Don't link against libgcc on Windows with GHC 9.4+ (#512) --- bytestring.cabal | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bytestring.cabal b/bytestring.cabal index 61ffcce4f..b2778c414 100644 --- a/bytestring.cabal +++ b/bytestring.cabal @@ -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