Cross compiling a release with Apple M1 and Docker

For posterity: you can set ERL_AFLAGS=“+JMsingle true” and make the JIT more amenable to emulation. Or compile it on a matching machine.

As a last resort, you can try compiling the Erlang VM without JIT and using the emulator, but that’s not recommend (it is slower too).

1 Like