lfe: use correctly filtered erl_opts

This commit is contained in:
Tuncer Ayaz 2013-09-30 19:05:23 +02:00
parent 8f05368ba4
commit 55d1539404

View file

@ -70,8 +70,8 @@ compile_lfe(Source, _Target, Config) ->
"~n", []), "~n", []),
?FAIL; ?FAIL;
_ -> _ ->
Opts = [{i, "include"}, {outdir, "ebin"}, return] ErlOpts = rebar_utils:erl_opts(Config),
++ rebar_config:get_list(Config, erl_opts, []), 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);