mirror of
https://github.com/correl/rebar.git
synced 2024-11-15 11:09:33 +00:00
Remove erlc target after fail_on_warning failure
Prevent overlooking a compilation warning by removing the target beam file after fail_on_warning failure.
This commit is contained in:
parent
008dcb8542
commit
a529577b74
1 changed files with 2 additions and 0 deletions
|
@ -228,6 +228,8 @@ internal_erl_compile(Source, Config, Outdir, ErlOpts) ->
|
|||
%% We got at least one warning -- if fail_on_warning is in options, fail
|
||||
case lists:member(fail_on_warning, Opts) of
|
||||
true ->
|
||||
%% remove target to prevent overlooking this failure
|
||||
ok = file:delete(Target),
|
||||
?FAIL;
|
||||
false ->
|
||||
ok
|
||||
|
|
Loading…
Reference in a new issue