mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix #209 (Reported-by: Bjorn Bylander)
Use correct ERL_LIBS separator on Windows.
This commit is contained in:
parent
29d71e356c
commit
ae178b851b
1 changed files with 7 additions and 1 deletions
|
@ -97,11 +97,17 @@ compile(Config, AppFile) ->
|
|||
setup_env(_Config) ->
|
||||
{true, DepsDir} = get_deps_dir(),
|
||||
%% include rebar's DepsDir in ERL_LIBS
|
||||
Separator = case os:type() of
|
||||
{win32, nt} ->
|
||||
";";
|
||||
_ ->
|
||||
":"
|
||||
end,
|
||||
ERL_LIBS = case os:getenv("ERL_LIBS") of
|
||||
false ->
|
||||
{"ERL_LIBS", DepsDir};
|
||||
PrevValue ->
|
||||
{"ERL_LIBS", DepsDir ++ ":" ++ PrevValue}
|
||||
{"ERL_LIBS", DepsDir ++ Separator ++ PrevValue}
|
||||
end,
|
||||
[{"REBAR_DEPS_DIR", DepsDir}, ERL_LIBS].
|
||||
|
||||
|
|
Loading…
Reference in a new issue