mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +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]) ->
|
update_deps_code_path([Dep | Rest]) ->
|
||||||
case is_app_available(Dep#dep.app, Dep#dep.vsn_regex, Dep#dep.dir) of
|
case is_app_available(Dep#dep.app, Dep#dep.vsn_regex, Dep#dep.dir) of
|
||||||
{true, _} ->
|
{true, _} ->
|
||||||
code:add_patha(filename:join(Dep#dep.dir, ebin));
|
code:add_patha(filename:join(Dep#dep.dir, "ebin"));
|
||||||
false ->
|
false ->
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
|
@ -249,7 +249,7 @@ use_source(Dep, Count) ->
|
||||||
{true, _} ->
|
{true, _} ->
|
||||||
%% Available version matches up -- we're good to go; add the
|
%% Available version matches up -- we're good to go; add the
|
||||||
%% app dir to our code path
|
%% 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;
|
Dep;
|
||||||
false ->
|
false ->
|
||||||
%% The app that was downloaded doesn't match up (or had
|
%% The app that was downloaded doesn't match up (or had
|
||||||
|
|
|
@ -315,7 +315,7 @@ default_env() ->
|
||||||
{"CC", "cc"},
|
{"CC", "cc"},
|
||||||
{"CXX", "c++"},
|
{"CXX", "c++"},
|
||||||
{"ERL_CFLAGS", lists:concat([" -I", code:lib_dir(erl_interface, include),
|
{"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),
|
{"ERL_LDFLAGS", lists:concat([" -L", code:lib_dir(erl_interface, lib),
|
||||||
" -lerl_interface -lei"])},
|
" -lerl_interface -lei"])},
|
||||||
|
|
Loading…
Reference in a new issue