From ffa3fb5eaee2fd503501589707292185b6a3481f Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Tue, 15 Apr 2014 23:59:53 +0000 Subject: [PATCH] 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 --- rebar.config.script | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 rebar.config.script diff --git a/rebar.config.script b/rebar.config.script new file mode 100644 index 0000000..02efadf --- /dev/null +++ b/rebar.config.script @@ -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. \ No newline at end of file