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

Support compilation of Elixir files within a Gleam project #1766

Closed
lpil opened this issue Sep 19, 2022 · 1 comment · Fixed by #1770
Closed

Support compilation of Elixir files within a Gleam project #1766

lpil opened this issue Sep 19, 2022 · 1 comment · Fixed by #1770
Labels
help wanted Contributions encouraged
Milestone

Comments

@lpil
Copy link
Member

lpil commented Sep 19, 2022

We can shell out and call elixirc?

We will need to do this last as the Elixir code may need to execute Gleam and Erlang code during compilation. How do we make it avaliable?

@lpil lpil added help wanted Contributions encouraged area:tooling labels Sep 19, 2022
@lpil lpil added this to the Gleam v1.0 milestone Sep 19, 2022
@tynanbe
Copy link
Member

tynanbe commented Sep 20, 2022

I think if we copy .ex files in the same fn where "native" modules get copied, we then need to use that new maybe_link_elixir_libs fn, keep a separate list of .ex files, and see if running this at the end of the main gleam@@compile.erl script would do the trick:

'Elixir.Kernel.ParallelCompiler':compile_to_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants