Enabling OTP new features consistently in the code building process

In a recent release of rebar3_format, enabling the new features of OTP 25 (namely the
maybe keyword)
is required. I actually like the new feature, but I wonder what the proper ways to include the ERL_FLAGS="-enable-feature all" option in the building process. Ideas and pointers to reference documents are welcome.


Quoting @MononcQc on the Erlanger Slack:

Meaning… add an export for that variable in your .bashrc or .zshrc or .profile or whatever-name-you-have-for-that.


Thx Brujo and Fred for the tips!
One more tip: this ERL_AFLAGS export setting must be placed after kerl activation, because kerl itself sets the ERL_AFLAGS as well.

1 Like