rebar.config.script that checks for maps support in the release rebar
is using to compile. hopefully this is the same release as the artifact is being run on
This commit is contained in:
parent
bc20262d1f
commit
ffa3fb5eae
1 changed files with 6 additions and 0 deletions
6
rebar.config.script
Normal file
6
rebar.config.script
Normal file
|
@ -0,0 +1,6 @@
|
|||
application:start(compiler),
|
||||
case {erlang:system_info(version), application:get_key(compiler, vsn)} of
|
||||
{X, {ok, Y}} when X >= "6.0" andalso Y >= "5.0" ->
|
||||
CONFIG ++ [{erl_opts, [{d, release_supports_maps}]}];
|
||||
_ -> CONFIG
|
||||
end.
|
Loading…
Add table
Add a link
Reference in a new issue