ocaml-cross / opam-cross-android

An OCaml cross-toolchain for Android and several useful libraries
105 stars 15 forks source link

Support for recent OCaml versions #47

Open mvglasow opened 1 year ago

mvglasow commented 1 year ago

I am trying to build Unison for Android, which requires OCaml >= 4.08.

Any chance of adding support for a somewhat recent OCaml version? What would it take?

whitequark commented 1 year ago

I'd say look at the existing packages and try to do something similar. (This is what I did back when I maintained this actively.)

mvglasow commented 1 year ago

As far as I can tell, the contents of this repo were developed for one OCaml version and have stayed there until this day. Thus, presumably some things can be reused, whereas others need to be updated.

Off the top of your head, would you be able to give a rough overview of what you did back then? How complex would adding support for a different OCaml version be? Just changing a few version numbers in a few places, or making more extensive changes? What is stable across versions? (Or is that a matter of try and error?)

whitequark commented 1 year ago

It was almost 10 years ago!