Skip to content

Commit bbd6abb

Browse files
author
Paul Schoenfelder
committed
Use werl instead of erl when executing iex.bat
1 parent a29d291 commit bbd6abb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/elixir.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,9 @@ for /d %%d in ("%originPath%..\lib\*.") do (
8686
)
8787
SETLOCAL disabledelayedexpansion
8888
:run
89-
erl %ext_libs% -noshell %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*
89+
IF %useWerl% EQU 1 (
90+
werl %ext_libs% %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*
91+
) ELSE (
92+
erl %ext_libs% -noshell %ELIXIR_ERL_OPTS% %parsErlang% -s elixir start_cli %beforeExtra% -extra %*
93+
)
9094

bin/iex.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@echo off
2+
SET useWerl=1
23
call "%~dp0\elixir.bat" +iex --no-halt -e "IEx.start" %*

0 commit comments

Comments
 (0)