packages feed

libBF 0.6.3 → 0.6.4

raw patch · 2 files changed

+19/−3 lines, 2 filesnew-uploaderPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for libBF-hs +## 0.6.4 -- 2022.08.11++* Fix the build on Windows with GHC 9.4, which bundles a Clang-based C+  toolchain instead of a GCC-based one.+ ## 0.6.3 -- 2021-10-14  * Fix an additional compile issue on 32-bit systems. Previously
libBF.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.2  name:                libBF-version:             0.6.3+version:             0.6.4 synopsis:            A binding to the libBF library. description:         LibBF is a C library for working with arbitray precision                      IEEE 754 floating point numbers.@@ -38,8 +38,19 @@    hs-source-dirs:      src -  if os(windows)-    extra-libraries: gcc_s+  -- Prior to GHC 9.4, Windows GHC bindists bundled a GCC-based C toolchain,+  -- which requires linking against the GCC library to handle some of the+  -- compiler intrinsics that appear in the optimized code. Moreover,+  -- dynamically linking against the GCC library proves fragile, so we force+  -- static linking by providing the full name of the static GCC library+  -- archive.+  --+  -- On GHC 9.4+, Windows GHC bindists ship a Clang-based C toolchain. Clang+  -- optimizations don't appear to require linking against anything in+  -- particular, so it just works out of the box.+  if !impl(ghc >= 9.4)+    if os(windows)+      extra-libraries: gcc_s    if flag(system-libbf)     extra-libraries: bf