Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add OCaml 5 support #67

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

darlentar
Copy link

Before OCaml5, hash_variant was defined as an alias for caml_hash_variant in compatibility.h file
(#define hash_variant caml_hash_variant)

Seems not present in OCaml5 so this patch rename hash_variant to caml_hash_variant.

Before OCaml5, hash_variant was defined as an alias for
caml_hash_variant in compatibility.h file
(#define hash_variant caml_hash_variant)

Seems not present in OCaml5 so this patch rename hash_variant
to caml_hash_variant.
@darlentar darlentar force-pushed the add_ocaml5_support branch 2 times, most recently from 4a6fc37 to 9c60e5b Compare December 20, 2022 13:35
@darlentar
Copy link
Author

darlentar commented Dec 20, 2022

Needs other changes though as some functions also changed in generated code (
eg register_global_root->caml_register_global_root).

Also need to fix domain lock issues introduced with OCaml5.
When we compile helloworld example we have:

➜  helloworld git:(add_ocaml5_support) ✗ ./helloworld
Fatal error: no domain lock held

@Kakadu
Copy link
Owner

Kakadu commented Jan 21, 2023

It looks like some additional checks has been added in ocaml/ocaml#11506
Don't know how write correctly yet....

Signed-off-by: Kakadu <Kakadu@pm.me>
Signed-off-by: Kakadu <Kakadu@pm.me>
Signed-off-by: Kakadu <Kakadu@pm.me>
Signed-off-by: Kakadu <Kakadu@pm.me>
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.

2 participants