Explorar el Código

Minimize compile options

pull/3/head
Tuncer Ayaz hace 14 años
padre
commit
5c0b46d92d
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +1
    -1
      src/rebar_erlc_compiler.erl
  2. +3
    -3
      src/rebar_lfe_compiler.erl

+ 1
- 1
src/rebar_erlc_compiler.erl Ver fichero

@ -252,7 +252,7 @@ internal_erl_compile(Source, Config, Outdir, ErlOpts) ->
case needs_compile(Source, Target, Hrls) of
true ->
Opts = [{outdir, filename:dirname(Target)}] ++
ErlOpts ++ [{i, "include"}, report, return_errors],
ErlOpts ++ [{i, "include"}, report],
case compile:file(Source, Opts) of
{ok, _} ->
ok;

+ 3
- 3
src/rebar_lfe_compiler.erl Ver fichero

@ -61,10 +61,10 @@ compile_lfe(Source, _Target, Config) ->
>>, []),
?FAIL;
_ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report, return] ++
rebar_config:get_list(Config, erl_opts, []),
Opts = [{i, "include"}, {outdir, "ebin"}, report]
++ rebar_config:get_list(Config, erl_opts, []),
case lfe_comp:file(Source, Opts) of
{ok, _, []} ->
{ok, _} ->
ok;
_ ->
?FAIL

Cargando…
Cancelar
Guardar