Closed dinosaure closed 3 years ago
This is a useful change, and I'm happy to merge it if it can be adapted to keep support for OCaml versions before 4.07.0 (when bigarray
was added to the stdlib).
We'd probably need conditions both in the Makefile
and the opam
file (and eventually for dune
: see #588). I'm not sure how best to deal with the findlib META
file, though.
One possibility is to use bigarray-compat which does the dispatch for you but it requires to explicitly use Bigarray_compat
. If you are not agree with such solution, I can find my way to do the dispatch on the Makefile
level :+1:.
Using bigarray_compat
looks like a reasonable solution.
I updated the project according the new usage of bigarray-compat
instead bigarray
. However, I did not change anything about generated code - I mean, generated code still refers to Bigarray
module. I ran make depend
to re-generate .depend
and updated OPAM and META file :+1:. I think it's ready for a review.
The 4.02.3 build is failing, because bigarray-compat
isn't installable:
The following dependencies couldn't be met:
- ctypes → bigarray-compat → ocaml >= 4.03.0
base of this switch (use `--unlock-base' to force)
Can the constraint in the bigarray-compat
package be relaxed to allow OCaml 4.02.3?
See ocaml/opam-repository#17600 and mirage/bigarray-compat#3 :+1:.
Seems all green :tada: ! It's possible to cut a minor release with it ?
I'm not sure about which version of OCaml
ocaml-ctypes
should support but this patch delete the non-essentialunix
dependency for the core library (andctypes.stubs
). This patch unlock the ability to do a reverse binding of an OCaml library which does not depends onunix
.