summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_port_compiler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index fcce72b..b99ae0b 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -247,7 +247,7 @@ expand_vars_loop(Vars0, Count) ->
case orddict:from_list(Vars) of
Vars0 ->
Vars0;
- Vars ->
+ _ ->
expand_vars_loop(Vars, Count-1)
end.
@@ -297,7 +297,7 @@ erts_dir() ->
lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)]).
os_env() ->
- [list_to_tuple(re:split(S, "=", [{return, list}])) || S <- os:getenv()].
+ [list_to_tuple(re:split(S, "=", [{return, list}, {parts, 2}])) || S <- os:getenv()].
default_env() ->
[{"CC", "gcc"},