Skip to content

Commit

Permalink
Add rebar-deps env to port compiler SharedEnv
Browse files Browse the repository at this point in the history
REBAR_DEPS_DIR is often needed when a nif needs to be linked with a raw
dependency.
  • Loading branch information
ratelle committed May 6, 2013
1 parent 65b183b commit c2fae0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rebar_port_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c2fae0c

Please sign in to comment.