Fix order of erl_opts to be more accurate

This commit is contained in:
Tuncer Ayaz 2010-12-30 14:32:49 +01:00
parent a529577b74
commit 9c0d51bc0b

View file

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