Add erlc override from erl_opts: outdir

This commit is contained in:
Joe DeVivo 2012-08-17 14:32:07 -07:00 committed by Tuncer Ayaz
parent e34b702423
commit 991e2ce8e1

View file

@ -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.