diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-10-15 11:56:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 11:56:57 -0400 |
commit | 7bfc8110d1736d2cbf61e19d2fc16dc8e854b460 (patch) | |
tree | 91f6606ad1083eea8e57fcc46821454180b50c94 /src/rebar_compiler.erl | |
parent | 86519cf743204eab1d922ca8133fbf00c66f9ee8 (diff) | |
parent | fb6de6e0e5dc0da1c4e64c166bcb69327420cb60 (diff) |
Merge pull request #1907 from ferd/refactor-env-paths
Refactor env path handling and fix some bugs related to it
Diffstat (limited to 'src/rebar_compiler.erl')
-rw-r--r-- | src/rebar_compiler.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar_compiler.erl b/src/rebar_compiler.erl index c2c514a..6e94cb2 100644 --- a/src/rebar_compiler.erl +++ b/src/rebar_compiler.erl @@ -34,11 +34,10 @@ -define(RE_PREFIX, "^(?!\\._)"). compile_all(Compilers, AppInfo) -> - OutDir = rebar_utils:to_list(rebar_app_info:out_dir(AppInfo)), - + EbinDir = rebar_utils:to_list(rebar_app_info:ebin_dir(AppInfo)), %% Make sure that outdir is on the path - ok = rebar_file_utils:ensure_dir(OutDir), - true = code:add_patha(filename:absname(OutDir)), + ok = rebar_file_utils:ensure_dir(EbinDir), + true = code:add_patha(filename:absname(EbinDir)), %% necessary for erlang:function_exported/3 to work as expected %% called here for clarity as it's required by both opts_changed/2 |