Fork me on GitHub
#graalvm-mobile
<
2022-05-21
>
borkdude13:05:29

@smith.adriane In grease, an ios binary (arm) is compiled on an intel machine... given that, would it be theoretically possible to compile an M1 binary on an intel machine?

phronmophobic17:05:20

@borkdude, I'm not totally sure. I think it should be possible, but I'm not sure how much work it might be. The ios compilation uses the https://www.graalvm.org/22.1/reference-manual/native-image/LLVMBackend/#how-to-add-a-target-architecture-to-graalvm-using-llvm-backend. In theory, you should be able to cross compile to any target llvm supports. The llvm backend requires a few more steps. It's not a comprehensive list, but I think you need at least the following: • compiled jdk for target • extra https://www.graalvm.org/22.1/reference-manual/native-image/LLVMBackend/#how-to-add-a-target-architecture-to-graalvm-using-llvm-backend