mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 18:29:20 +02:00
For OTP<22 define LAGER macro in ext_mod like in rebar.config (#3493)
This commit is contained in:
parent
fad14ff319
commit
4495f0f0b9
1 changed files with 7 additions and 0 deletions
|
@ -569,8 +569,15 @@ compile_result(Results) ->
|
||||||
[Error|_] -> Error
|
[Error|_] -> Error
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
maybe_define_lager_macro() ->
|
||||||
|
case list_to_integer(erlang:system_info(otp_release)) < 22 of
|
||||||
|
true -> [{d, 'LAGER'}];
|
||||||
|
false -> []
|
||||||
|
end.
|
||||||
|
|
||||||
compile_options() ->
|
compile_options() ->
|
||||||
[verbose, report_errors, report_warnings, debug_info, ?ALL_DEFS]
|
[verbose, report_errors, report_warnings, debug_info, ?ALL_DEFS]
|
||||||
|
++ maybe_define_lager_macro()
|
||||||
++ [{i, filename:join(app_dir(App), "include")}
|
++ [{i, filename:join(app_dir(App), "include")}
|
||||||
|| App <- [fast_xml, xmpp, p1_utils, ejabberd]]
|
|| App <- [fast_xml, xmpp, p1_utils, ejabberd]]
|
||||||
++ [{i, filename:join(mod_dir(Mod), "include")}
|
++ [{i, filename:join(mod_dir(Mod), "include")}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue