Fix #209 (Reported-by: Bjorn Bylander)

Use correct ERL_LIBS separator on Windows.
This commit is contained in:
Tuncer Ayaz 2012-04-04 17:42:39 +02:00
parent 29d71e356c
commit ae178b851b

View file

@ -97,11 +97,17 @@ compile(Config, AppFile) ->
setup_env(_Config) -> setup_env(_Config) ->
{true, DepsDir} = get_deps_dir(), {true, DepsDir} = get_deps_dir(),
%% include rebar's DepsDir in ERL_LIBS %% include rebar's DepsDir in ERL_LIBS
Separator = case os:type() of
{win32, nt} ->
";";
_ ->
":"
end,
ERL_LIBS = case os:getenv("ERL_LIBS") of ERL_LIBS = case os:getenv("ERL_LIBS") of
false -> false ->
{"ERL_LIBS", DepsDir}; {"ERL_LIBS", DepsDir};
PrevValue -> PrevValue ->
{"ERL_LIBS", DepsDir ++ ":" ++ PrevValue} {"ERL_LIBS", DepsDir ++ Separator ++ PrevValue}
end, end,
[{"REBAR_DEPS_DIR", DepsDir}, ERL_LIBS]. [{"REBAR_DEPS_DIR", DepsDir}, ERL_LIBS].