diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-04-15 19:20:57 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-04-15 19:20:57 -0500 |
commit | cbd22cf49003421214880b252015f331f4346e6e (patch) | |
tree | 25498a6e246fb018733d15a05ff7eb6815987e87 /src/rebar_prv_compile.erl | |
parent | 38191c369a29c4cd8f6c5a30233014b7d7547813 (diff) | |
parent | f82874de5802dbf9e2029a9aa07c7cbae12a1324 (diff) |
Merge pull request #340 from tsloughter/compile_sort
include applications list in compile sort
Diffstat (limited to 'src/rebar_prv_compile.erl')
-rw-r--r-- | src/rebar_prv_compile.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_compile.erl b/src/rebar_prv_compile.erl index a440927..11a01ed 100644 --- a/src/rebar_prv_compile.erl +++ b/src/rebar_prv_compile.erl @@ -46,11 +46,12 @@ do(State) -> %% Use the project State for building project apps %% Set hooks to empty so top-level hooks aren't run for each project app State2 = rebar_state:set(rebar_state:set(State, post_hooks, []), pre_hooks, []), - ProjectApps1 = build_apps(State2, Providers, ProjectApps), + {ok, ProjectApps1} = rebar_digraph:compile_order(ProjectApps), + ProjectApps2 = build_apps(State2, Providers, ProjectApps1), rebar_hooks:run_all_hooks(Cwd, post, ?PROVIDER, Providers, State), - {ok, rebar_state:project_apps(State, ProjectApps1)}. + {ok, rebar_state:project_apps(State, ProjectApps2)}. -spec format_error(any()) -> iolist(). format_error(Reason) -> |