diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-10-06 11:38:33 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-10-11 08:43:54 -0400 |
commit | 311ee6b1371c3eea3611dc5d7945b1b5667c75bd (patch) | |
tree | 8f80ef6c684bc610848a998813dae788d7df1802 /src/rebar_compiler.erl | |
parent | 9d788d893620f868b9c0ee00ddec8ae4d5d8fea7 (diff) |
Fix a bug in compiler path handling
Also handle some formatting
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 |