summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-10-05 09:52:58 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-10-05 09:52:58 -0400
commit8d1116e23b3e70812f5247a129975c69e61f3bb7 (patch)
tree7e847e296204635da80d474bf30cb2a9dbff28b5 /src
parenta74eb69a8364fdad0a8e376072b97b46cc2fae4e (diff)
parent15c98a78c261b3dde364acfe28cd793d7cd5306a (diff)
Merge pull request #856 from tsloughter/hook_env
add ERLANG_ARCH and ERLANG_TARGET to os env for hooks
Diffstat (limited to 'src')
-rw-r--r--src/rebar_hooks.erl5
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) ->