瀏覽代碼

lfe: use correctly filtered erl_opts

pull/3/head
Tuncer Ayaz 11 年之前
父節點
當前提交
55d1539404
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/rebar_lfe_compiler.erl

+ 2
- 2
src/rebar_lfe_compiler.erl 查看文件

@ -70,8 +70,8 @@ compile_lfe(Source, _Target, Config) ->
"~n", []), "~n", []),
?FAIL; ?FAIL;
_ -> _ ->
Opts = [{i, "include"}, {outdir, "ebin"}, return]
++ rebar_config:get_list(Config, erl_opts, []),
ErlOpts = rebar_utils:erl_opts(Config),
Opts = [{i, "include"}, {outdir, "ebin"}, return] ++ ErlOpts,
case lfe_comp:file(Source, Opts) of case lfe_comp:file(Source, Opts) of
{ok, _Mod, Ws} -> {ok, _Mod, Ws} ->
rebar_base_compiler:ok_tuple(Config, Source, Ws); rebar_base_compiler:ok_tuple(Config, Source, Ws);

Loading…
取消
儲存