minor refactoring of feature detection
This commit is contained in:
parent
4f63503aa2
commit
649329c362
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
case os:getenv("JSX_NOMAPS") or proplists:get_value(jsx_nomaps, CONFIG, false) of
|
||||
false ->
|
||||
try file:script("config/maps") of
|
||||
{ok, true} -> [{erl_opts, [{d, release_supports_maps}]}] ++ CONFIG;
|
||||
{ok, true} -> [{erl_opts, [{d, maps_support}]}] ++ CONFIG;
|
||||
_ -> CONFIG
|
||||
catch _:_ -> CONFIG
|
||||
end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue