2014-04-19 00:10:09 +00:00
|
|
|
case os:getenv("JSX_NOMAPS") or proplists:get_value(jsx_nomaps, CONFIG, false) of
|
2014-04-17 13:40:28 +00:00
|
|
|
false ->
|
2014-04-19 00:00:54 +00:00
|
|
|
try file:script("config/maps") of
|
|
|
|
{ok, true} -> [{erl_opts, [{d, release_supports_maps}]}] ++ CONFIG;
|
|
|
|
_ -> CONFIG
|
2014-04-17 13:40:28 +00:00
|
|
|
catch _:_ -> CONFIG
|
|
|
|
end;
|
|
|
|
_ -> CONFIG
|
2014-04-15 23:59:53 +00:00
|
|
|
end.
|