ocaml / Zarith

The Zarith library implements arithmetic and logical operations over arbitrary-precision integers and rational numbers. The implementation, based on GMP, is very efficient.
Other
231 stars 70 forks source link

Fix for windows and OCaml 5 #141

Closed hhugo closed 1 year ago

hhugo commented 1 year ago

exported from #133, this patch was suggested by @dra27 for fixing the build with OCaml 5 on windows.

It'll be working on 4.x because of the CC hack in opam-repository-mingw packages. This works:


index 3aa538a..b8cea1e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,3 +2,4 @@
* text=auto

configure text eol=lf +config.guess text eol=lf \ No newline at end of file diff --git a/configure b/configure index 6e87fe9..3acd7a6 100755 --- a/configure +++ b/configure @@ -161,7 +161,7 @@ checklib() rm -f tmp.ml tmp.out echo "" > tmp.ml r=1

I don't really understand the limitation regarding flexlink and what hack were presents in opam-repository-mingw packages. I'm counting on @dra27 to answer any question regarding this PR.