There was a previous github issue that discussed passing compiler options to erlang, in
. At that time, this worked, because the elixir code server explicitly supported it:
If you pass invalid ERL_COMPILER_OPTIONS, erlang clearly sees it:
[jadams:~/elixir/rules_engine] master(+29/-21)* ± ERL_COMPILER_OPTIONS="-foo" mix compile --force
Ignoring bad term in ERL_COMPILER_OPTIONS
I no longer see a way to pass erl options to the elixir compiler. I ran into this as I'd like to compile everything using HiPE, because benchmarks of using HiPE for a couple of modules showed *worse* performance than non-HiPE, and Dmytro Lytovchenko suggested in #erlang that that could be caused by a mix of hipe and non-hipe modules:
<kvakvs> jadams: when not all modules in your app are compiled with hipe and it has to switch many times between hipe, erlang and bifs/nifs
<kvakvs> jadams: there is stat you can check, somewhere in process or vm info, context switches
<kvakvs> erlang:statistics/1 with arg 'context_switches'
<kvakvs> if it grows fast, you're in trouble with different hipe/non hipe modules coexisting in a busy app
At any rate, my need to do this is unrelated to the core issue, which is that I believe we no longer have the ability to pass options to the erlang compiler that will be used for elixir source files when using `mix compile`
If I'm incorrect on this point, then I'd love to know how, but I'm not here for support. I'm here because I believe I've found a regression. Thanks for reading this far! :)
--
Josh Adams