Browse Source

Fix erlc regression (reported-by Benoit Chesneau)

pull/3/head
Tuncer Ayaz 14 years ago
parent
commit
5b3082f443
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rebar_erlc_compiler.erl

+ 2
- 2
src/rebar_erlc_compiler.erl View File

@ -252,9 +252,9 @@ 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],
ErlOpts ++ [{i, "include"}, report, return_errors],
case compile:file(Source, Opts) of case compile:file(Source, Opts) of
{ok, _, []} ->
{ok, _} ->
ok; ok;
_ -> _ ->
?FAIL ?FAIL

Loading…
Cancel
Save