[erlang-questions] [madrid-erlang-users] strange rebar error **SOLVED**

Tuncer Ayaz tuncer.ayaz@REDACTED
Tue Mar 20 00:03:45 CET 2012


On Mon, Mar 19, 2012 at 10:53 PM, Angel J. Alvarez Miguel wrote:
> rebar.config was causing trouble....
>
> deleteing this file solves the problem but you have to write a new
> one...
>
> Some options have changed hopefully....
>
> By the way, the offending terms were:
>
> {escript_emu_args,["+sbtu","+K true","+A 2" ]}.

You should use
{escript_emu_args, "%%!+sbtu +Ktrue +A2\n"}.
instead.
rebar_escripter embeds the string as is, so don't forget the
terminating \n (thanks Angel for the correction).

> What are the current way of passing those args to the VM?

escript_emu_args works and allows you to embed "permanent" args.

Alternatively you can use the ERL_AFLAGS and ERL_FLAGS/ERL_ZFLAGS
environment variables.



More information about the erlang-questions mailing list