瀏覽代碼

Remove lfe_opts (suggested by Tim Dysinger)

pull/3/head
Tuncer Ayaz 14 年之前
父節點
當前提交
67af251d52
共有 2 個檔案被更改,包括 2 行新增7 行删除
  1. +1
    -2
      rebar.config.sample
  2. +1
    -5
      src/rebar_lfe_compiler.erl

+ 1
- 2
rebar.config.sample 查看文件

@ -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
{lfe_opts, []}.
%% Options for the LFE compiler: reuse {erl_opts, []}
%% == ErlyDTL Compiler == %% == ErlyDTL Compiler ==

+ 1
- 5
src/rebar_lfe_compiler.erl 查看文件

@ -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).
@ -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;

Loading…
取消
儲存