-
Notifications
You must be signed in to change notification settings - Fork 14
Express cross-platform-ness of beam files #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7b4887e to
62bb217
Compare
|
Like there is for rules_docker, there should probably be a flag to disable these transitions ( |
d1a2f0b to
92fa2e4
Compare
Done |
|
It has occurred to me that it's possible we want to also represent the beam version with this transition, to be able to for instance target an otp 26 runtime, but compile with 25. I think this should be possible, if we indicate the otp version in the host or exec platform definition as well. The transition will then have to handle this compatibility, and also the @erlang_config repository will have to define cpu's for each beam version instead of the single |
7910f04 to
1ffb5c5
Compare
Thinking further about this, I'm inclined not to force/resolve the compatibility in the analysis phase of the build. This is partly because I can't think of how to achieve it without projecting out rules for each erlang version an annotating with |
11096ee to
194e91d
Compare
194e91d to
7292bb7
Compare
7292bb7 to
67f2e53
Compare
This allows beam files to cache across architectures
67f2e53 to
27ea5d8
Compare
in
erlang_bytecode2rule