From 15c98a78c261b3dde364acfe28cd793d7cd5306a Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Mon, 5 Oct 2015 08:37:35 -0500 Subject: add ERLANG_ARCH and ERLANG_TARGET to os env for hooks --- src/rebar_hooks.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl index bbb916d..4e6d486 100644 --- a/src/rebar_hooks.erl +++ b/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) -> -- cgit v1.1