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:
alisdair sullivan 2014-04-15 23:59:53 +00:00
parent bc20262d1f
commit ffa3fb5eae

6
rebar.config.script Normal file
View 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.