summaryrefslogtreecommitdiff
path: root/src/rebar_compiler.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-10-15 11:56:57 -0400
committerGitHub <noreply@github.com>2018-10-15 11:56:57 -0400
commit7bfc8110d1736d2cbf61e19d2fc16dc8e854b460 (patch)
tree91f6606ad1083eea8e57fcc46821454180b50c94 /src/rebar_compiler.erl
parent86519cf743204eab1d922ca8133fbf00c66f9ee8 (diff)
parentfb6de6e0e5dc0da1c4e64c166bcb69327420cb60 (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.erl7
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