From 991e2ce8e1873e528c725cf7b35b65f9f143c6fc Mon Sep 17 00:00:00 2001 From: Joe DeVivo Date: Fri, 17 Aug 2012 14:32:07 -0700 Subject: [PATCH] Add erlc override from erl_opts: outdir --- src/rebar_erlc_compiler.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.