Skip to content

Commit

Permalink
Make sure that configure is run before pc:compile on rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Jul 12, 2019
1 parent 948578b commit f0bbc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit f0bbc05

Please sign in to comment.