ghc-double-conversion/use-system-lib.diff

77 lines
2.8 KiB
Diff

--- a/cbits/hs-double-conversion.cc
+++ b/cbits/hs-double-conversion.cc
@@ -1,4 +1,4 @@
-#include "double-conversion/double-conversion.h"
+#include <double-conversion/double-conversion.h>
#include "hs-double-conversion.h"
#include <stdio.h>
--- double-conversion-2.0.4.2/double-conversion.cabal~ 2023-01-22 23:29:39.000000000 +0800
+++ double-conversion-2.0.4.2/double-conversion.cabal 2023-01-24 21:09:34.724362392 +0800
@@ -13,15 +13,15 @@
synopsis: Fast conversion between single and double precision floating point and text
build-type: Simple
description:
- A library that performs fast, accurate conversion between
+ A library that performs fast, accurate conversion between
floating point and text.
.
This library is implemented as bindings to the C++
@double-conversion@ library written by Florian Loitsch at Google:
<https://github.com/floitsch/double-conversion>.
.
- Now it can convert single precision numbers, and also it can create
- Builder, instead of bytestring or text.
+ Now it can convert single precision numbers, and also it can create
+ Builder, instead of bytestring or text.
.
The 'Text' versions of these functions are about 30 times faster
than the default 'show' implementation for the 'Double' type.
@@ -29,7 +29,7 @@
The 'ByteString' versions are have very close speed to the 'Text' versions;
.
Builder versions (both for Text and Bytestring) are slower on single value,
- but they are much faster on large number of values
+ but they are much faster on large number of values
(up to 20x faster on list with 20000 doubles).
.
As a final note, be aware that the @bytestring-show@ package is
@@ -39,24 +39,6 @@
README.markdown
benchmarks/*.cabal
benchmarks/*.hs
- double-conversion/*.cmake.in
- double-conversion/AUTHORS
- double-conversion/CMakeLists.txt
- double-conversion/COPYING
- double-conversion/Changelog
- double-conversion/LICENSE
- double-conversion/Makefile
- double-conversion/README
- double-conversion/SConstruct
- double-conversion/src/*.cc
- double-conversion/src/*.h
- double-conversion/src/CMakeLists.txt
- double-conversion/src/SConscript
- double-conversion/test/CMakeLists.txt
- double-conversion/test/cctest/*.cc
- double-conversion/test/cctest/*.h
- double-conversion/test/cctest/CMakeLists.txt
- double-conversion/test/cctest/SConscript
include/*.h
tests/*.hs
@@ -82,10 +64,10 @@
extra-libraries: stdc++ gcc_s_seh-1
elif impl(ghc >= 8.6.5)
extra-libraries: stdc++ gcc_s_dw2-1
- else
+ else
extra-libraries: stdc++-6 gcc_s_dw2-1
else
- extra-libraries: stdc++
+ extra-libraries: stdc++ double-conversion
if flag(embedded_double_conversion)
c-sources: