-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
erlc_options should behave more like elixirc_options #9184
Comments
If we automatically add |
One option though would be to make the docs clearer regarding the need to add |
I say that because some people might want to disable it to make compilation faster (not even sure how faster it would be though). That makes me wonder if there is a way to do the same for elixir compiler, and if we should actually have that. |
The elixir compiler supports :no_debug_info so we should probably do the
same here.
--
*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D
|
I'm just curious how, because I don't see that anywhere on the codebase. Anyway, I can work on a PR for this. |
Hrm, I may be misremembering then. Perhaps it is debug_info: false? It would be in elixir_erl.erl or similar. :) |
Yep, that's it: https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/code.ex#L979-L981 What is strange is that it says the default value for it is
|
Oh, good catch, let’s fix the docs too!
--
*José Valimwww.plataformatec.com.br
<http://www.plataformatec.com.br/>Founder and Director of R&D*
|
I've just checked and actually the options PR coming soon. |
Environment
Current behavior
There difference in behaviour of
:elixirc_options
and:elrc_options
. This is the inclusion of:debug_info
. In:elixirc_options
it is added always (or at least seems so when running Dialyzer) while in:erlc_options
it need to be explicitly stated, otherwise Dialyzer will fail with information that it cannot find Erlang Core informations.Example repo: https://github.com/hauleth/example_error
Way to reproduce error:
Way to resolve error:
Expected behavior
Mix should always add
:debug_info
option or should provide different way to ensure, that this is handled properly. Otherwise it has limited capabilities as the Erlang projects build tool.The text was updated successfully, but these errors were encountered: