diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-02-13 10:18:18 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-02-13 10:18:18 -0700 |
commit | 0f7b47ce7b2e946a0ff98fb96e0b82cfc55fd7bb (patch) | |
tree | 9d3ffbea766de7205e66a7d4b28e1d51aa9a70ce /src/rebar_port_compiler.erl | |
parent | d486dff6e8c05ec87bd18c0ae1d3d050d9703ce2 (diff) | |
parent | 96c1ceba6007551812add22d585f46256d78e106 (diff) |
Merging w/ mainline
Diffstat (limited to 'src/rebar_port_compiler.erl')
-rw-r--r-- | src/rebar_port_compiler.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index a347cb7..b08a046 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -253,7 +253,9 @@ default_env() -> " -I", filename:join(erts_dir(), include), " "])}, {"DRIVER_LDFLAGS", lists:concat([" -L", code:lib_dir(erl_interface, lib), - " -lerl_interface -lei"])}]. + " -lerl_interface -lei"])}, + {"ERLANG_ARCH", integer_to_list(8 * erlang:system_info(wordsize))}, + {"ERLANG_TARGET", rebar_utils:get_arch()}]. |