diff options
author | Tristan Sloughter <[email protected]> | 2013-04-05 14:49:27 -0700 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2013-04-05 14:49:27 -0700 |
commit | 34cee33d7d9e70b4056c7349e214151a7be41cc6 (patch) | |
tree | baeea4d5ff0d4ed6492d825e36a40c78aca83c4a /rebar.config.script | |
parent | 073c7cde01902fb8fbed483af2d8de85310a8151 (diff) | |
parent | a96ae5dc597cbc01515c75fea9f41a6d79be91b3 (diff) | |
download | relx-34cee33d7d9e70b4056c7349e214151a7be41cc6.tar.gz relx-34cee33d7d9e70b4056c7349e214151a7be41cc6.tar.bz2 relx-34cee33d7d9e70b4056c7349e214151a7be41cc6.zip |
Merge pull request #42 from ericbmerritt/next
fix unexpected variable issue in build
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rebar.config.script b/rebar.config.script new file mode 100644 index 0000000..c19a751 --- /dev/null +++ b/rebar.config.script @@ -0,0 +1,15 @@ +{match, [ErtsNumber]} = re:run(erlang:system_info(otp_release), "R(\\d+).+", [{capture, [1], list}]), +ErtsVsn = erlang:list_to_integer(ErtsNumber), +Opts1 = case lists:keysearch(erl_opts, 1, CONFIG) of + {value, {erl_opts, Opts0}} -> + Opts0; + false -> + [] + end, +Opts2 = if + ErtsVsn >= 15 -> + [{d, have_callback_support} | Opts1]; + true -> + Opts1 + end, +lists:keystore(erl_opts, 1, CONFIG, {erl_opts, Opts2}). |