Skip to content

Commit

Permalink
Remove lfe_opts (suggested by Tim Dysinger)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuncer Ayaz committed Apr 11, 2011
1 parent bda6ee0 commit 67af251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions rebar.config.sample
Expand Up @@ -50,8 +50,7 @@
%% LFE files to compile before the rest %% LFE files to compile before the rest
{lfe_first_files, []}. {lfe_first_files, []}.


%% Options for the LFE compiler %% Options for the LFE compiler: reuse {erl_opts, []}
{lfe_opts, []}.


%% == ErlyDTL Compiler == %% == ErlyDTL Compiler ==


Expand Down
6 changes: 1 addition & 5 deletions src/rebar_lfe_compiler.erl
Expand Up @@ -37,10 +37,6 @@
%% =================================================================== %% ===================================================================


compile(Config, _AppFile) -> 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, []), FirstFiles = rebar_config:get_list(Config, lfe_first_files, []),
rebar_base_compiler:run(Config, FirstFiles, "src", ".lfe", "ebin", ".beam", rebar_base_compiler:run(Config, FirstFiles, "src", ".lfe", "ebin", ".beam",
fun compile_lfe/3). fun compile_lfe/3).
Expand All @@ -66,7 +62,7 @@ compile_lfe(Source, Target, Config) ->
?FAIL; ?FAIL;
_ -> _ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report, return] ++ 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 case lfe_comp:file(Source, Opts) of
{ok, _, []} -> {ok, _, []} ->
ok; ok;
Expand Down

0 comments on commit 67af251

Please sign in to comment.