From: Paweł Chmielowski Date: Fri, 12 Jul 2019 13:00:12 +0000 (+0200) Subject: Make sure that configure is run before pc:compile on rebar3 X-Git-Tag: 19.08~89^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0bbc05b7a5f5bae003efc5c03679e06040dfec7;p=ejabberd Make sure that configure is run before pc:compile on rebar3 --- diff --git a/rebar.config.script b/rebar.config.script index 694d6879f..0023c25f3 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -299,7 +299,7 @@ fun(Hooks) -> lists:map(fun({Pkg, Flags}) -> DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"), 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,