diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-10-05 08:37:35 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-10-05 08:37:35 -0500 |
commit | 15c98a78c261b3dde364acfe28cd793d7cd5306a (patch) | |
tree | 7e847e296204635da80d474bf30cb2a9dbff28b5 /src | |
parent | a74eb69a8364fdad0a8e376072b97b46cc2fae4e (diff) |
add ERLANG_ARCH and ERLANG_TARGET to os env for hooks
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_hooks.erl | 5 |
1 files changed, 4 insertions, 1 deletions
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) -> |