소스 검색

add ERLANG_ARCH and ERLANG_TARGET to os env for hooks

pull/856/head
Tristan Sloughter 9 년 전
부모
커밋
15c98a78c2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/rebar_hooks.erl

+ 4
- 1
src/rebar_hooks.erl 파일 보기

@ -122,7 +122,10 @@ create_env(State, Opts) ->
{"ERLANG_LIB_DIR_erl_interface", code:lib_dir(erl_interface)},
{"ERLANG_LIB_VER_erl_interface", re_version(code:lib_dir(erl_interface))},
{"ERL", filename:join([code:root_dir(), "bin", "erl"])},
{"ERLC", filename:join([code:root_dir(), "bin", "erlc"])}
{"ERLC", filename:join([code:root_dir(), "bin", "erlc"])},
{"ERLANG_ARCH" , rebar_api:wordsize()},
{"ERLANG_TARGET", rebar_api:get_arch()}
].
join_dirs(BaseDir, Dirs) ->

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