|
|
|
|
|
by chrisseaton
3435 days ago
|
|
But why would you want to recompile the VM when you've just
changed your program? And it looks like you can cross compile BEAM
anyway. http://erlang.org/faq/implementations.html. It's just a C program isn't it so why wouldn't you be able to? |
|
The beams themselves are cross-platform bytecode, but in practice beam files are not distributed on their own (except for patching). Typically you'll ship them as part of the released package which includes ERTS, your application, and all required dependencies (system libraries, other apps/libraries, and any native dependencies you've introduced). It excludes anything you don't declare as necessary from the final release package
In practice, people will usually use either the official release tooling or third party tooling to create platform-specific releases.
[1] http://erlang.org/doc/installation_guide/INSTALL-CROSS.html [2] http://www2.erlangcentral.org/wiki/?title=Cross_compiling