Add rebar-deps env to port compiler SharedEnv

REBAR_DEPS_DIR is often needed when a nif needs to be linked with a raw
dependency.
This commit is contained in:
Jeremie Lasalle Ratelle 2013-05-06 11:15:06 -04:00
parent 65b183b020
commit c2fae0ca5c

View file

@ -100,7 +100,8 @@ compile(Config, AppFile) ->
[] ->
ok;
Specs ->
SharedEnv = rebar_config:get_env(Config, ?MODULE),
SharedEnv = rebar_config:get_env(Config, rebar_deps) ++
rebar_config:get_env(Config, ?MODULE),
%% Compile each of the sources
NewBins = compile_sources(Config, Specs, SharedEnv),