How do I tell rebar3 to use werl on Windows?

231 views Asked by At

This may apply to any rebar commands but it is mostly about rebar shell.

By default rebar uses erl and this might be clunky on Windows shells.

1

There are 1 answers

1
aronisstav On BEST ANSWER

According to this source

You can run rebar3 (and any other escript) with werl by specifying the ESCRIPT_EMULATOR environment variable. In a Git bash that would be:

ESCRIPT_EMULATOR=werl rebar3 shell