From 3588c69ad2ca5bab3916f5ada96c511cee81ad93 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 22 Jun 2010 20:38:45 -0600 Subject: Fix bug 255; O/S environment vars should be processed last, not first --- src/rebar_port_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.1