aboutsummaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2020-08-10 10:14:49 +0200
committerBadlop <badlop@process-one.net>2020-08-10 12:29:40 +0200
commit8aa0f7073fd4a2cd6d846ac29967f9d1aa764247 (patch)
tree3c3512c99861186b533dbe3d96305b80f781f1a3 /mix.exs
parentDon't forget not-persistent rooms in load_permanent_rooms (diff)
Copy Erlang compilation definitions from rebar.config to Docker (#3350)
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mix.exs b/mix.exs
index afc645eb3..00d7e0a57 100644
--- a/mix.exs
+++ b/mix.exs
@@ -66,7 +66,10 @@ defmodule Ejabberd.Mixfile do
cond_options() ++
Enum.map(includes, fn (path) -> {:i, path} end) ++
if_version_above('20', [{:d, :DEPRECATED_GET_STACKTRACE}]) ++
+ if_version_below('21', [{:d, :USE_OLD_HTTP_URI}]) ++
if_version_below('22', [{:d, :LAGER}]) ++
+ if_version_below('23', [{:d, :USE_OLD_CRYPTO_HMAC}]) ++
+ if_version_below('23', [{:d, :USE_OLD_PG2}]) ++
if_function_exported(:erl_error, :format_exception, 6, [{:d, :HAVE_ERL_ERROR}])
defines = for {:d, value} <- result, do: {:d, value}
result ++ [{:d, :ALL_DEFS, defines}]