mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 19:21:34 +00:00
Fix dialyzer warning for filename:join/2 calls
This commit is contained in:
parent
3354e8ebe0
commit
d590c18b5a
2 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ update_deps_code_path([]) ->
|
|||
update_deps_code_path([Dep | Rest]) ->
|
||||
case is_app_available(Dep#dep.app, Dep#dep.vsn_regex, Dep#dep.dir) of
|
||||
{true, _} ->
|
||||
code:add_patha(filename:join(Dep#dep.dir, ebin));
|
||||
code:add_patha(filename:join(Dep#dep.dir, "ebin"));
|
||||
false ->
|
||||
ok
|
||||
end,
|
||||
|
@ -249,7 +249,7 @@ use_source(Dep, Count) ->
|
|||
{true, _} ->
|
||||
%% Available version matches up -- we're good to go; add the
|
||||
%% app dir to our code path
|
||||
code:add_patha(filename:join(Dep#dep.dir, ebin)),
|
||||
code:add_patha(filename:join(Dep#dep.dir, "ebin")),
|
||||
Dep;
|
||||
false ->
|
||||
%% The app that was downloaded doesn't match up (or had
|
||||
|
|
|
@ -315,7 +315,7 @@ default_env() ->
|
|||
{"CC", "cc"},
|
||||
{"CXX", "c++"},
|
||||
{"ERL_CFLAGS", lists:concat([" -I", code:lib_dir(erl_interface, include),
|
||||
" -I", filename:join(erts_dir(), include),
|
||||
" -I", filename:join(erts_dir(), "include"),
|
||||
" "])},
|
||||
{"ERL_LDFLAGS", lists:concat([" -L", code:lib_dir(erl_interface, lib),
|
||||
" -lerl_interface -lei"])},
|
||||
|
|
Loading…
Reference in a new issue