bake-bake-bake / bakeware

Compile Elixir applications into single, easily distributed executable binaries
Other
1.43k stars 45 forks source link

Does this still need to be compiled/built on an equivalent to the target server? #40

Open carterbryden opened 4 years ago

carterbryden commented 4 years ago

For example if I want to deploy on Ubuntu 18.04 currently I need to mix release on a server with the same OS/arch. I'm assuming that's still the case here?

fhunleth commented 4 years ago

Yes. There's no support for cross-compilation.

This came up multiple times when scoping out what we wanted to do for SpawnFest. The Nerves project crosscompiles code for packaging OTP releases on embedded devices, so it is possible. Many Elixir and Erlang libraries that have native code already support crosscompilation with Nerves. I think that it's something to consider as a future feature.