diff options
author | Jeremie Lasalle Ratelle <jeremie.ratelle@gmail.com> | 2013-05-06 11:15:06 -0400 |
---|---|---|
committer | Jeremie Lasalle Ratelle <jeremie.ratelle@gmail.com> | 2013-05-06 11:15:06 -0400 |
commit | c2fae0ca5c91d53b883ddeb4249cc2d828782a24 (patch) | |
tree | 0678dcea99350f44f376ce07835e9e95cebbf835 | |
parent | 65b183b020bdd452ea645aa339f63c93ec22d5b5 (diff) |
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.
-rw-r--r-- | src/rebar_port_compiler.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl index 36d741d..0abb044 100644 --- a/src/rebar_port_compiler.erl +++ b/src/rebar_port_compiler.erl @@ -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), |