summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-04-04 17:42:39 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-04-04 17:44:36 +0200
commitae178b851b92ba02a7e7642a27441bf74fae627a (patch)
tree7ee9eb9d13ef5c065570c30b0f954099d169f678 /src
parent29d71e356cf7848da8b67c7f67918c6bef813e03 (diff)
Fix #209 (Reported-by: Bjorn Bylander)
Use correct ERL_LIBS separator on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_deps.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index c6e3ff6..c64d761 100644
--- a/src/rebar_deps.erl
+++ b/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].