瀏覽代碼

Fix dialyzer erts file lookup for releases prior to R16B02

erts.app was introduced in R16B02 so read all beam files from the erts
ebin directory if erts.app file does not exist.
pull/135/head
James Fish 10 年之前
父節點
當前提交
d693093c00
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      src/rebar_prv_dialyzer.erl

+ 7
- 0
src/rebar_prv_dialyzer.erl 查看文件

@ -202,6 +202,8 @@ ebin_to_info(EbinDir, AppName) ->
Modules = proplists:get_value(modules, AppDetails, []),
Files = modules_to_files(Modules, EbinDir),
{IncApps ++ DepApps, Files};
{error, enoent} when AppName =:= erts ->
{[], ebin_files(EbinDir)};
_ ->
Error = io_lib:format("Could not parse ~p", [AppFile]),
throw({dialyzer_error, Error})
@ -222,6 +224,11 @@ module_to_file(Module, EbinDir, Ext) ->
false
end.
ebin_files(EbinDir) ->
Wildcard = "*" ++ code:objfile_extension(),
[filename:join(EbinDir, File) ||
File <- filelib:wildcard(Wildcard, EbinDir)].
read_plt(_State, Plt) ->
case dialyzer:plt_info(Plt) of
{ok, Info} ->

Loading…
取消
儲存