diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-09-29 21:28:20 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-09-29 21:28:20 +0200 |
commit | d590c18b5a2e6fbe5a2e5c7490438a2f1d348018 (patch) | |
tree | ea07358286f4a9708e183fba2d3a7a4a78d85ce4 /src | |
parent | 3354e8ebe01d0d7b94aa23b5b79aabd3dbc1c5e6 (diff) |
Fix dialyzer warning for filename:join/2 calls
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_deps.erl | 4 | ||||
-rw-r--r-- | src/rebar_port_compiler.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 641f92c..9f7ea06 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -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 diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index d07b369..d962b28 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -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"])}, |