diff options
author | Duncan M. McGreggor <oubiwann@gmail.com> | 2015-09-26 12:18:36 -0500 |
---|---|---|
committer | Duncan M. McGreggor <oubiwann@gmail.com> | 2015-09-26 15:10:50 -0500 |
commit | b32aaae5e77f457110732b3fea586d865c9371fc (patch) | |
tree | 2ba4fc93bb1867f792113d19a7cc9c775840cd81 | |
parent | 5d97cb74f8a2861132b0583e15e626845af0a9af (diff) | |
download | rebar-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.
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | src/rebar_lfe_compiler.erl | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -144,3 +144,4 @@ Stavros Aronis James Fish Tony Rogvall Andrey Teplyashin +Duncan McGreggor 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); |