25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Make sure that configure is run before pc:compile on rebar3

This commit is contained in:
Paweł Chmielowski 2019-07-12 15:00:12 +02:00
parent 948578b55b
commit f0bbc05b7a

View File

@ -299,7 +299,7 @@ fun(Hooks) ->
lists:map(fun({Pkg, Flags}) -> lists:map(fun({Pkg, Flags}) ->
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"), DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
Line = lists:flatten(GenDepConfigureLine(DepPath, Flags)), Line = lists:flatten(GenDepConfigureLine(DepPath, Flags)),
{add, list_to_atom(Pkg), [{pre_hooks, [{'compile', Line}, {'configure-deps', Line}]}]} {add, list_to_atom(Pkg), [{pre_hooks, [{{pc, compile}, Line}, {'compile', Line}, {'configure-deps', Line}]}]}
end, Hooks) end, Hooks)
end, end,