summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-04-11 14:08:39 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-04-11 14:08:39 +0200
commit67af251d52913c2568a004593b6d7aac429abace (patch)
tree2e6cc5415ab0d77a6986e17c046212e33bbba2d9
parentbda6ee0e483905bc38e97068023f226c5ebc28aa (diff)
Remove lfe_opts (suggested by Tim Dysinger)
-rw-r--r--rebar.config.sample3
-rw-r--r--src/rebar_lfe_compiler.erl6
2 files changed, 2 insertions, 7 deletions
diff --git a/rebar.config.sample b/rebar.config.sample
index 8b9a90f..62990cf 100644
--- a/rebar.config.sample
+++ b/rebar.config.sample
@@ -50,8 +50,7 @@
%% LFE files to compile before the rest
{lfe_first_files, []}.
-%% Options for the LFE compiler
-{lfe_opts, []}.
+%% Options for the LFE compiler: reuse {erl_opts, []}
%% == ErlyDTL Compiler ==
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index 8356ab8..50b7c29 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -37,10 +37,6 @@
%% ===================================================================
compile(Config, _AppFile) ->
- ?DEPRECATED(fail_on_warning, warnings_as_errors,
- rebar_config:get_list(Config, lfe_opts, []),
- "once OTP R15 is released"),
-
FirstFiles = rebar_config:get_list(Config, lfe_first_files, []),
rebar_base_compiler:run(Config, FirstFiles, "src", ".lfe", "ebin", ".beam",
fun compile_lfe/3).
@@ -66,7 +62,7 @@ compile_lfe(Source, Target, Config) ->
?FAIL;
_ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report, return] ++
- rebar_config:get_list(Config, lfe_opts, []),
+ rebar_config:get_list(Config, erl_opts, []),
case lfe_comp:file(Source, Opts) of
{ok, _, []} ->
ok;