10

For Erlang code, I use rebar. For Elixir code, I use the built-in mix tool.

Now I want to have a mixed Erlang/Elixir project. Can I use rebar to compile Elixir code? Or can I use mix to compile Erlang code?

If so, how?

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
Stratus3D
  • 4,648
  • 4
  • 35
  • 67

1 Answers1

9

Mix can compile erlang files if you put them in src. There is a rebar_elixir_plugin to compile Elixir code from rebar but it is not as efficient at it as Mix.

José Valim
  • 50,409
  • 12
  • 130
  • 115
  • 3
    Please, use a distinctive name for "Mix" build tool. It is hard to google it! – Chiron Nov 06 '13 at 09:05
  • 2
    Mix ships with Elixir and can be found in Elixir source code. The tool linked above is a very old variant. – José Valim Nov 06 '13 at 15:07
  • Yeah I know but still googling "mix" isn't the best thing to find resources. – Chiron Nov 07 '13 at 09:13
  • 4
    // , We just need to link farm until elixir-lang and its tools are the top results for words like elixir and mix! Like what happens when the non-programmer muggles search for "python" and end up with some weird programming language. FTW. – Nathan Basanese Jun 21 '15 at 12:03