Cross compile arm64 on x86 arch #5374
Unanswered
vincentdchan
asked this question in
Q&A
Replies: 2 comments 1 reply
-
It's possible. It does require you to install a host and target compiler though. See documentation: https://dune.readthedocs.io/en/stable/cross-compilation.html |
Beta Was this translation helpful? Give feedback.
1 reply
-
One gross and probably overcomplicated (but fully working!) solution I've found is that, since ARM macs can just run x86_64 binaries, you don't need to cross compile at all. Instead, an alternate intel installation of ocaml can build intel binaries. Very roughly:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Desired Behavior
Apple has released M1 sillicon for a while. It's inconvient to compile OCaml code for different platforms.
Such as compiling M1 version on a x86 mac, or compiling x86 on a M1 mac. Is that possible for OCaml?
Both Go and Rust support this feature.
Beta Was this translation helpful? Give feedback.
All reactions