summaryrefslogtreecommitdiff
path: root/src/rebar_erlc_compiler.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-12-30 14:32:49 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-01-04 11:27:17 +0100
commit9c0d51bc0be4ae1f141ab25a12724d97ffc7c0a7 (patch)
tree4e89d7fe06aa0d7d741ad5c2c9e0bdf1bbc3a914 /src/rebar_erlc_compiler.erl
parenta529577b740d5a0a8f48703d4d66248099155de0 (diff)
Fix order of erl_opts to be more accurate
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r--src/rebar_erlc_compiler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 13c2eaa..871b9a1 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -219,8 +219,8 @@ internal_erl_compile(Source, Config, Outdir, ErlOpts) ->
%% the target,
case needs_compile(Source, Target, Hrls) of
true ->
- Opts = [{i, "include"}, {outdir, filename:dirname(Target)}, report, return] ++
- ErlOpts,
+ Opts = [{outdir, filename:dirname(Target)}] ++
+ ErlOpts ++ [{i, "include"}, report, return],
case compile:file(Source, Opts) of
{ok, _, []} ->
ok;