]> granicus.if.org Git - ejabberd/commitdiff
Make sure that configure is run before pc:compile on rebar3
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 12 Jul 2019 13:00:12 +0000 (15:00 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 12 Jul 2019 13:00:12 +0000 (15:00 +0200)
rebar.config.script

index 694d6879f56bf1668baff944ef7ad88bbef8980e..0023c25f3b79867a77a2d7524508d6f99b3733a2 100644 (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,