summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-06-22 20:38:45 -0600
committerDave Smith <dizzyd@dizzyd.com>2010-06-22 20:38:45 -0600
commit3588c69ad2ca5bab3916f5ada96c511cee81ad93 (patch)
treeee2c014224d28678e0ffc316606f9c0aab35fbf4
parent8d14f3193d0715031b9983d8428465cc3060e93b (diff)
Fix bug 255; O/S environment vars should be processed last, not first
-rw-r--r--src/rebar_port_compiler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index f38b621..ae883e7 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -85,7 +85,7 @@ compile(Config, AppFile) ->
%% default for this operating system. This enables max flexibility for users.
DefaultEnvs = filter_envs(default_env(), []),
OverrideEnvs = filter_envs(rebar_config:get_list(Config, port_envs, []), []),
- Env = expand_vars_loop(merge_each_var(os_env() ++ DefaultEnvs ++ OverrideEnvs, [])),
+ Env = expand_vars_loop(merge_each_var(DefaultEnvs ++ OverrideEnvs ++ os_env(), [])),
%% One or more files are available for building. Run the pre-compile hook, if
%% necessary.