Skip to content

Commit 2783742

Browse files
committed
Merge pull request #4102 from orderthruchaos/master
Add environment variable to iex.bat so user can default to --werl
2 parents f7a1d27 + 8310c9b commit 2783742

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/iex.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
2-
call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %*
2+
@if defined IEX_WITH_WERL (@set __ELIXIR_IEX_FLAGS=--werl) else (set __ELIXIR_IEX_FLAGS=)
3+
call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %__ELIXIR_IEX_FLAGS% %*
4+
@set __ELIXIR_IEX_FLAGS=

0 commit comments

Comments
 (0)