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

[Ctypes] fix compilation in byte-only #7431

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bobot
Copy link
Collaborator

@bobot bobot commented Mar 28, 2023

When the native compilation is not present, the compilation of the generators for ctypes fails since it only use native compilation. For example https://ocaml.ci.dev/github/bobot/ocaml-flint/commit/24ee67cb3939b936777d5f9899d558de3773816d/variant/debian-11-5.0_s390x_opam-2.1#L313-313

This fix is better than the current code, but perhaps we should use one of the compilation modes selected for the library.

CC @kit-ty-kate

@bobot bobot force-pushed the fix_ctypes_in_byteonly branch from 5b12e24 to 8003e71 Compare March 28, 2023 12:08
@bobot bobot requested a review from rgrinberg March 29, 2023 14:46
@rgrinberg
Copy link
Member

Could you add a test somehow? I think we we have an example of hiding ocamlopt to simulate a bytecode only switch.

@bobot
Copy link
Collaborator Author

bobot commented Mar 29, 2023

I can try. But a more general would be to add a byte-only variant in the general test matrix, no?

@anmonteiro
Copy link
Collaborator

There's a byte-code-only test here that can probably serve as inspiration

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