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
1 changed files with 1 additions and 1 deletions

View File

@ -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,