소스 검색

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

불러오는 중...
취소
저장