summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.