mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Use override syntax that rebar3 accepts
This commit is contained in:
parent
d3aab2ea18
commit
99f8e58eaf
@ -2,11 +2,11 @@
|
|||||||
-export([preprocess/2]).
|
-export([preprocess/2]).
|
||||||
|
|
||||||
override_opts(override, Config, Opts) ->
|
override_opts(override, Config, Opts) ->
|
||||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||||
rebar_config:set(Conf, Opt, Value)
|
rebar_config:set(Conf, Opt, Value)
|
||||||
end, Config, Opts);
|
end, Config, Opts);
|
||||||
override_opts(add, Config, Opts) ->
|
override_opts(add, Config, Opts) ->
|
||||||
lists:foldl(fun({Opt, Value}, Conf) ->
|
lists:foldl(fun({Opt, [Value]}, Conf) ->
|
||||||
V = rebar_config:get_local(Conf, Opt, []),
|
V = rebar_config:get_local(Conf, Opt, []),
|
||||||
rebar_config:set(Conf, Opt, [Value | V])
|
rebar_config:set(Conf, Opt, [Value | V])
|
||||||
end, Config, Opts).
|
end, Config, Opts).
|
||||||
|
@ -298,8 +298,8 @@ GenDepsConfigure =
|
|||||||
fun(Hooks) ->
|
fun(Hooks) ->
|
||||||
lists:map(fun({Pkg, Flags}) ->
|
lists:map(fun({Pkg, Flags}) ->
|
||||||
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
|
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
|
||||||
{add, list_to_atom(Pkg), [{pre_hooks, {'compile',
|
{add, list_to_atom(Pkg), [{pre_hooks, [{'compile',
|
||||||
lists:flatten(GenDepConfigureLine(DepPath, Flags))}}]}
|
lists:flatten(GenDepConfigureLine(DepPath, Flags))}]}]}
|
||||||
end, Hooks)
|
end, Hooks)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user