瀏覽代碼

Deal properly with env vars that have multiple = in the value

pull/3/head
Dave Smith 15 年之前
父節點
當前提交
6714d47efb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/rebar_port_compiler.erl

+ 2
- 2
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"},

Loading…
取消
儲存