소스 검색

Add comment to explain why we're using sub_dirs by hand

pull/3/head
Dave Smith 12 년 전
부모
커밋
a7c32f8d98
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      src/rebar_xref.erl

+ 5
- 0
src/rebar_xref.erl 파일 보기

@ -133,6 +133,11 @@ check_query({Query, Value}) ->
end.
code_path(Config) ->
%% Slight hack to ensure that sub_dirs get properly included
%% in code path for xref -- otherwise one gets a lot of undefined
%% functions, even though those functions are present as part
%% of compilation. H/t to @dluna. Long term we should tie more
%% properly into the overall compile code path if possible.
BaseDir = rebar_config:get_xconf(Config, base_dir),
[P || P <- code:get_path() ++
[filename:join(BaseDir, filename:join(SubDir, "ebin"))

불러오는 중...
취소
저장