浏览代码

Fix #209 (Reported-by: Bjorn Bylander)

Use correct ERL_LIBS separator on Windows.
pull/3/head
Tuncer Ayaz 13 年前
父节点
当前提交
ae178b851b
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      src/rebar_deps.erl

+ 7
- 1
src/rebar_deps.erl 查看文件

@ -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].

正在加载...
取消
保存