Skip to content

Commit

Permalink
Windows-related tweaks (for issues lfe#138 and lfe#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultaire committed May 3, 2016
1 parent 0f3ef8e commit af31f82
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/lfe.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@ECHO OFF

REM This works after running "make compile". If lfe.bat and
REM lfeexec.exe are moved to the Erlang bin directory, this will break
REM unless the ebin folder is also moved into the Erlang root
REM directory.

SET LFE_ROOTDIR=%~dp0..

lfeexec
5 changes: 5 additions & 0 deletions c_src/lfeexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
#define YES 1
#define NO 0

#ifdef __WIN32__
/* On Windows, erl doesn't correctly load the LFE REPL; werl does. */
#define DEFAULT_PROGNAME "werl"
#else
#define DEFAULT_PROGNAME "erl"
#endif

static char **Eargv = NULL; /* Argument array for erl call */
static int Eargc = 0; /* Argument count */
Expand Down

0 comments on commit af31f82

Please sign in to comment.