-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Include erlang/elixir ffi modules in exported erlang app files #3728
base: main
Are you sure you want to change the base?
Include erlang/elixir ffi modules in exported erlang app files #3728
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for looking into this. 💜
It's a bit tricky to test this bit as it involves code generation, but you could add some checks to this test script: https://github.com/gleam-lang/gleam/blob/main/test/external_only_erlang/test.sh
I think your change here may have stopped the entrypoint module from getting compiled by the way- the Erlang compilation is being run after it is rendered to disc. Perhaps the .app
writing could be moved to be the last thing in the module rather than moving the Erlang compilation up?
81ce392
to
f898192
Compare
Somehow this broke the project_erlang test, but I compared the before and after of the resulting folders and they seems to be the same (besides obvious differences in cache files and the compiler script) |
f898192
to
0631852
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nice work!!! Really digging this.
I've left some small notes inline
6796a61
to
c286284
Compare
This does seem to make the compiler happy, but I'm kinda lost on where and how to test this kind of behaviour.
Related to #3710