summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe DeVivo <joe.devivo@basho.com>2012-08-17 14:32:07 -0700
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-18 17:19:23 +0200
commit991e2ce8e1873e528c725cf7b35b65f9f143c6fc (patch)
tree7b010d6b80ee4db5c3379908ee3c46e57e08f582
parente34b70242320db94a0d44702eb1a3cfb77fa24c6 (diff)
Add erlc override from erl_opts: outdir
-rw-r--r--src/rebar_erlc_compiler.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 84b9e85..00a1c35 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -259,7 +259,9 @@ doterl_compile(Config, OutDir, MoreSources) ->
true = code:add_path(filename:absname("ebin")),
rebar_base_compiler:run(Config, NewFirstErls, OtherErls,
fun(S, C) ->
- internal_erl_compile(C, S, OutDir, ErlOpts)
+ internal_erl_compile(C, S,
+ proplists:get_value(outdir, ErlOpts, OutDir),
+ ErlOpts)
end),
true = code:set_path(CurrPath),
ok.