mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Minimize compile options
This commit is contained in:
parent
5b3082f443
commit
5c0b46d92d
2 changed files with 4 additions and 4 deletions
|
@ -252,7 +252,7 @@ internal_erl_compile(Source, Config, Outdir, ErlOpts) ->
|
||||||
case needs_compile(Source, Target, Hrls) of
|
case needs_compile(Source, Target, Hrls) of
|
||||||
true ->
|
true ->
|
||||||
Opts = [{outdir, filename:dirname(Target)}] ++
|
Opts = [{outdir, filename:dirname(Target)}] ++
|
||||||
ErlOpts ++ [{i, "include"}, report, return_errors],
|
ErlOpts ++ [{i, "include"}, report],
|
||||||
case compile:file(Source, Opts) of
|
case compile:file(Source, Opts) of
|
||||||
{ok, _} ->
|
{ok, _} ->
|
||||||
ok;
|
ok;
|
||||||
|
|
|
@ -61,10 +61,10 @@ compile_lfe(Source, _Target, Config) ->
|
||||||
>>, []),
|
>>, []),
|
||||||
?FAIL;
|
?FAIL;
|
||||||
_ ->
|
_ ->
|
||||||
Opts = [{i, "include"}, {outdir, "ebin"}, report, return] ++
|
Opts = [{i, "include"}, {outdir, "ebin"}, report]
|
||||||
rebar_config:get_list(Config, erl_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;
|
||||||
_ ->
|
_ ->
|
||||||
?FAIL
|
?FAIL
|
||||||
|
|
Loading…
Reference in a new issue