summaryrefslogtreecommitdiff
path: root/rebar.config
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2014-06-11 16:38:48 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2014-06-11 16:38:48 -0500
commit908028858fc4376c02951dd1e524008d24c453f1 (patch)
tree8cfda962b1518b59a4e099400d7f11049f8794c4 /rebar.config
parent7936f9e873beb5887a8a81c24bdcbe09de3dd337 (diff)
parent4e67d254db38f349885fe5bb7dab764a9978deff (diff)
Merge pull request #292 from matwey/namespaced_types
Namespaced types: fix build for 17.0
Diffstat (limited to 'rebar.config')
-rw-r--r--rebar.config6
1 files changed, 5 insertions, 1 deletions
diff --git a/rebar.config b/rebar.config
index 9028737..bf4ef4f 100644
--- a/rebar.config
+++ b/rebar.config
@@ -4,7 +4,11 @@
%% escript_incl_extra is for internal rebar-private use only.
%% Do not use outside rebar. Config interface is not stable.
{escript_incl_extra, [{"priv/templates/*", "."}]}.
-{erl_opts, [warnings_as_errors]}.
+%% Types dict:dict() and digraph:digraph() have been introduced in Erlang 17.
+%% At the same time, their counterparts dict() and digraph() are to be deprecated
+%% in Erlang 18. namespaced_types option is used to select proper type name
+%% depending of the OTP version used.
+{erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, warnings_as_errors]}.
{xref_checks, []}.
{xref_queries,
[{"(XC - UC) || (XU - X - B