mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Add comment to explain why we're using sub_dirs by hand
This commit is contained in:
parent
b1a947488b
commit
a7c32f8d98
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,11 @@ check_query({Query, Value}) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
code_path(Config) ->
|
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),
|
BaseDir = rebar_config:get_xconf(Config, base_dir),
|
||||||
[P || P <- code:get_path() ++
|
[P || P <- code:get_path() ++
|
||||||
[filename:join(BaseDir, filename:join(SubDir, "ebin"))
|
[filename:join(BaseDir, filename:join(SubDir, "ebin"))
|
||||||
|
|
Loading…
Reference in a new issue