[erlang-questions] env with erlang version number - rebar3, maybe?
Peti Gömöri
gomoripeti@REDACTED
Wed Aug 29 13:02:10 CEST 2018
hello,
since OTP 21 there is a predefined macro OTP_RELEASE that even the Erlang
compiler knows (so not rebar3 specific), see
http://erlang.org/doc/reference_manual/macros.html#predefined-macros
On Wed, Aug 29, 2018 at 11:18 AM, Bartłomiej Górny <bartek@REDACTED>
wrote:
> Hello
>
> Is it possible to automatically set an env variable with erlang version
> number, to solve that notorious deprecaction vs backward compatibility
> problem? Rebar3 "knows" major release number (since it supports
> "require_otp_vsn" clause), is there a way to set it in the environment?
>
> BG
>
>
> --
> mężczyzna potrzebuje dwóch narzędzi - taśmy klejącej i WD40. co się rusza,
> a nie powinno skleić taśmą, a co się nie rusza, a powinno - spryskać WD40.
>
> (mafodope, bash.org.pl)
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180829/5699ec76/attachment.htm>
More information about the erlang-questions
mailing list