aboutsummaryrefslogtreecommitdiffstats
path: root/rebar.config
diff options
context:
space:
mode:
Diffstat (limited to 'rebar.config')
-rw-r--r--rebar.config5
1 files changed, 4 insertions, 1 deletions
diff --git a/rebar.config b/rebar.config
index 762d6df..6686664 100644
--- a/rebar.config
+++ b/rebar.config
@@ -18,6 +18,7 @@
{platform_define, "^1[8|9]", rand_module},
{platform_define, "^2", rand_module},
warnings_as_errors,
+ {platform_define, "^2", unicode_str},
inline]}.
%% Use OTP 18+ when dialyzing relx
@@ -53,6 +54,7 @@
{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^R1[4|5]", deprecated_crypto},
{platform_define, "^((1[8|9])|2)", rand_module},
+ {platform_define, "^2", unicode_str},
no_debug_info,
warnings_as_errors
]},
@@ -61,7 +63,8 @@
{override, bbmustache, [
{erl_opts, [no_debug_info]},
{deps, []}, {plugins, []}]},
- {override, getopt, [{erl_opts, [no_debug_info]}]},
+ {override, getopt, [{erl_opts, [no_debug_info,
+ {platform_define, "^2", unicode_str}]}]},
{override, providers, [{erl_opts, [no_debug_info]}]}
]}.