浏览代码

Run the preprocess again if subdirs were compiled, fixes http://bitbucket.org/basho/rebar/issue/5

Bob Ippolito 15 年前
父节点
当前提交
59ab113f3b
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      src/rebar_core.erl

+ 11
- 0
src/rebar_core.erl 查看文件

@ -287,6 +287,17 @@ process_dir(Dir, ParentConfig, Commands) ->
%% to change
ok = file:set_cwd(Dir),
%% http://bitbucket.org/basho/rebar/issue/5
%% If the compiler ran, run the preprocess again because a new ebin dir
%% may have been produced.
case Dirs =/= [] andalso lists:member(compile, Commands) of
true ->
acc_modules(select_modules(Modules, preprocess, []),
preprocess, Config, ModuleSetFile, []);
false ->
ok
end,
%% Finally, process the current working directory
?DEBUG("Commands: ~p Modules: ~p\n", [Commands, Modules]),
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),

正在加载...
取消
保存