diff options
| author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-06-01 15:12:17 +0200 | 
|---|---|---|
| committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-06-01 18:56:01 +0200 | 
| commit | 5c0b46d92d3c17a6140e3c7ad0b50c57b36af67d (patch) | |
| tree | 152dda0fa333c19bedbf6616daaf6762607c0d5b /src | |
| parent | 5b3082f44350710a61d9e8f5b33b9463e9e3d818 (diff) | |
Minimize compile options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rebar_erlc_compiler.erl | 2 | ||||
| -rw-r--r-- | src/rebar_lfe_compiler.erl | 6 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 08b663a..fe06cbf 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -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; diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl index 4534c9f..3775735 100644 --- a/src/rebar_lfe_compiler.erl +++ b/src/rebar_lfe_compiler.erl @@ -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 | 
