Skip to content

Get rid of <caml/compatibility.h>#10863

Merged
nojb merged 5 commits intoocaml:trunkfrom
nojb:remove_compatibility
Jan 10, 2022
Merged

Get rid of <caml/compatibility.h>#10863
nojb merged 5 commits intoocaml:trunkfrom
nojb:remove_compatibility

Conversation

@nojb
Copy link
Copy Markdown
Contributor

@nojb nojb commented Jan 10, 2022

Following #10831, this PR gets rid of caml/compatibility.h.

@kit-ty-kate
Copy link
Copy Markdown
Member

@dra27
Copy link
Copy Markdown
Member

dra27 commented Jan 10, 2022

Remove the header completely, or just make it a no-op?

@xavierleroy
Copy link
Copy Markdown
Contributor

Remove the header completely, or just make it a no-op?

Remove. The existence of <caml/compatibility.h> was never advertised; it was always included from another <caml/....h> header.

Copy link
Copy Markdown
Contributor

@xavierleroy xavierleroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good to me. It was about time we get rid of these compatibility names!

EDIT: wait, I had a suggestion but forgot to add it.

@nojb nojb merged commit 284834d into ocaml:trunk Jan 10, 2022
@nojb nojb deleted the remove_compatibility branch January 10, 2022 18:37
artempyanykh added a commit to artempyanykh/infer that referenced this pull request Oct 9, 2022
Summary:
This is an MVP to make Infer build with ocaml 5.0.0~alpha1

It does require a bit of a setup, in particular:
1. opam repo add alpha git+https://github.com/kit-ty-kate/opam-alpha-repository.git
2. `opam pin add` for [javalib](javalib-team/javalib#22) and
   [sawja](javalib-team/sawja#8).

parmap is not compatible with multi-core and I'm not sure it'll be
compatible anytime soon because of [compatibility.h
deprecation](ocaml/ocaml#10863). However, we use
only `Setcore` from parmap; some of those functions should have an
alternative in Stdlib.Domain.
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.

4 participants