summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuncan M. McGreggor <oubiwann@gmail.com>2015-09-26 12:18:36 -0500
committerDuncan M. McGreggor <oubiwann@gmail.com>2015-09-26 15:10:50 -0500
commitb32aaae5e77f457110732b3fea586d865c9371fc (patch)
tree2ba4fc93bb1867f792113d19a7cc9c775840cd81 /src
parent5d97cb74f8a2861132b0583e15e626845af0a9af (diff)
downloadrebar-b32aaae5e77f457110732b3fea586d865c9371fc.tar.gz
Add report and verbose options for LFE compile
Recent builds of LFE have stopped reporting compile errors when compiled with rebar. Examination of this issue revealed that this was due to recent changes in default LFE compile options. The way that LFE handles compile options has slightly changed; ``verbose`` and ``report`` are now provided as defaults only if no other options are passed; if other options are passed, these do not get set. As a result, we have stopped seeing compile error info when building with rebar. This change brings back the previous level of reporting that LFE developers had when compiling their projects with rebar.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_lfe_compiler.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index 8488b0f..7d37914 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -71,7 +71,9 @@ compile_lfe(Source, _Target, Config) ->
?FAIL;
_ ->
ErlOpts = rebar_utils:erl_opts(Config),
- Opts = [{i, "include"}, {outdir, "ebin"}, return] ++ ErlOpts,
+ LfeOpts = [report, verbose, {i, "include"}, {outdir, "ebin"},
+ return],
+ Opts = LfeOpts ++ ErlOpts,
case lfe_comp:file(Source, Opts) of
{ok, _Mod, Ws} ->
rebar_base_compiler:ok_tuple(Config, Source, Ws);