Skip to content

Restore building on very old OCamls - #86

Merged
dra27 merged 4 commits into
ocaml:masterfrom
dra27:crazy-appveyor
Jun 26, 2020
Merged

dra27 merged 4 commits into
ocaml:masterfrom
dra27:crazy-appveyor

Conversation

@dra27

@dra27 dra27 commented Jun 26, 2020

Copy link
Copy Markdown
Member

I intend to overhaul this to switch to GitHub Actions, as we'll get much better parallelism, but in the meantime.

I do not propose that we actively support building flexlink on OCaml 3.11, but it is quite useful that it basically still does (especially when opam finally allows installing the old Windows compilers in switches). I propose that dropping support for building flexlink with very old OCamls should be done consciously as part of a larger - long overdue - overhaul of the code, not just because of little patches.

With that in mind:

  • restoring 4.02 support involves a slight hack to the Compat system. As part of Support multiple arguments with -Wl, #85, I will switch this to be rather better pre-processed, but for now it just involves moving Buffer.to_bytes into the Compat406 and not caring that it gets redefined for OCaml 4.03-4.05 when it doesn't need to be
  • Restoring 3.11-4.01 support involves converting a single match on an exception back to try

The AppVeyor matrix is then expanded - I debated getting it to skip most versions for PRs, but I propose just putting this in as-is for now, given that the traffic on this repo I so low...

dra27 added 4 commits June 26, 2020 16:16
Both Compat modules defined a Buffer module, which doesn't work.
Note that special handling of 3.12, since the actual 3.12 branch
eventually got turned into 3.13 which got turned into OCaml 4.00!
@dra27

dra27 commented Jun 26, 2020

Copy link
Copy Markdown
Member Author

Note that while the first time run is very slow for this, caching makes the AppVeyor run much quicker (see this run on my fork). As far as I can tell, when I (or someone) switches this to a well-engineered GitHub Actions workflow, we'd get a lot of parallelism for free.

@dra27
dra27 merged commit ced7143 into ocaml:master Jun 26, 2020
@dra27
dra27 deleted the crazy-appveyor branch June 26, 2020 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant