From 268405d0dc49d6a0a2d0ea41014b045b3ff26eb0 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 10 Feb 2010 11:15:55 -0700 Subject: Adding new vars for scripts to determine architecture (32/64 bit) and target platform of Erlang VM; courtesy of rtilder --- src/rebar_port_compiler.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index a347cb7..2f419c9 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", 8 * erlang:system_info(wordsize)}, + {"ERLANG_TARGET", erlang:system_info(system_architecture)}]. -- cgit v1.1