jsx/rebar.config.script
alisdair sullivan ffa3fb5eae 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
2014-04-15 23:59:53 +00:00

6 lines
No EOL
240 B
Text

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.