Copy Erlang compilation definitions from rebar.config to Docker (#3350)
This commit is contained in:
parent
8a645a2d3d
commit
8aa0f7073f
3
mix.exs
3
mix.exs
|
@ -66,7 +66,10 @@ defmodule Ejabberd.Mixfile do
|
||||||
cond_options() ++
|
cond_options() ++
|
||||||
Enum.map(includes, fn (path) -> {:i, path} end) ++
|
Enum.map(includes, fn (path) -> {:i, path} end) ++
|
||||||
if_version_above('20', [{:d, :DEPRECATED_GET_STACKTRACE}]) ++
|
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('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}])
|
if_function_exported(:erl_error, :format_exception, 6, [{:d, :HAVE_ERL_ERROR}])
|
||||||
defines = for {:d, value} <- result, do: {:d, value}
|
defines = for {:d, value} <- result, do: {:d, value}
|
||||||
result ++ [{:d, :ALL_DEFS, defines}]
|
result ++ [{:d, :ALL_DEFS, defines}]
|
||||||
|
|
Loading…
Reference in New Issue