Skip to content
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

Force -mode(interpret) in templated escripts #941

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

ferd
Copy link
Collaborator

@ferd ferd commented Aug 26, 2024

Starting with OTP-27, the escript files are compiled by default instead of running in interpreted mode. Unfortunately for Relx, this causes issues for releases when the application that has been shipped does not bundle the compiler application, and errors come out of it.

For full compatibility and better usage for releases, force files to be interpreted at all times, removing a hidden dependency on the compiler being present.

Fixes #940

Starting with OTP-27, the escript files are compiled by default instead
of running in interpreted mode. Unfortunately for Relx, this causes
issues for releases when the application that has been shipped does not
bundle the compiler application, and errors come out of it.

For full compatibility and better usage for releases, force files to be
interpreted at all times, removing a hidden dependency on the compiler
being present.

Fixes erlware#940
@ferd ferd merged commit 19bbd63 into erlware:main Aug 27, 2024
6 of 9 checks passed
@ferd ferd deleted the otp-27-escript-compat branch August 27, 2024 13:15
ferd added a commit to erlang/rebar3 that referenced this pull request Aug 29, 2024
Manyally applies erlware/relx#941 to vendored
files, since the relx release for it isn't in place just yet but we need
OTP-27 compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiler application needed for install_upgrade.escript?
1 participant