Support include
directory for Erlang headers
#3816
maennchen
started this conversation in
Ideas & suggestions
Replies: 1 comment 2 replies
-
Hello! Even with this I don't think it would be sufficient to implement what you want. Gleam isn't like Elixir and Erlang in that it distributes and directly uses a large amount of modules, so you'd need to add additional packages for the Gleam version to work. This would mean that you'd have to add Gleam-specific dependencies to your package, which would break compilation for Elixir and Erlang users as their build tools don't yet support Gleam. If they did support Gleam then you'd still have a substantial amount of dead code being compiled and loaded for these languages. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rationale
I would like to add gleam bindings into
oidcc
. The project is built using Erlang and contains Elixir bindings already. Gleam ones would be a nice addition.I would like to publish only one package containing all 3 languages if possible instead of creating a separate binding only package.
(Plus that would be the first 3 language package on Hex 😄)
The erlang code uses records and a few macros defined in
.hrl
header files in theinclude
directory.Issue
When trying to add gleam to the project as well,
gleam build
fails withcan't find include file
errors for the compiled.erl
files.See: https://github.com/erlef/oidcc/actions/runs/11768509083/job/32778418446
Reproduction
.hrl
file.erl
source filegleam.toml
gleam build
Versions
Logs
GLEAM_LOG=trace gleam build --warnings-as-errors &> gleam_build.log
=>gleam_build.log
Beta Was this translation helpful? Give feedback.
All reactions