summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Moody <dmoody256@gmail.com>2022-05-24 04:15:37 (GMT)
committerDaniel Moody <dmoody256@gmail.com>2022-05-24 04:15:37 (GMT)
commit4b9a5534225b93fc7038c8d801bb6652699bb97c (patch)
treea94f688813e06c17a9433ab9a9c223789ca4c6da
parentcc5a1aa155a3bb95a0f573e01e5cf09fe7f30e90 (diff)
downloadSCons-4b9a5534225b93fc7038c8d801bb6652699bb97c.zip
SCons-4b9a5534225b93fc7038c8d801bb6652699bb97c.tar.gz
SCons-4b9a5534225b93fc7038c8d801bb6652699bb97c.tar.bz2
move ENV copy to more optimal location
-rw-r--r--SCons/Action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Action.py b/SCons/Action.py
index 172e74e..38570ce 100644
--- a/SCons/Action.py
+++ b/SCons/Action.py
@@ -759,12 +759,12 @@ def _resolve_shell_env(env, target, source):
ENV = get_default_ENV(env)
shell_gen = env.get('SHELL_ENV_GENERATORS')
if shell_gen is not None:
- ENV = ENV.copy()
try:
shell_gens = iter(shell_gen)
except TypeError:
raise SCons.Errors.UserError("SHELL_ENV_GENERATORS must be iteratable.")
else:
+ ENV = ENV.copy()
for generator in shell_gens:
ENV = generator(env, target, source, ENV)
if not isinstance(ENV, dict):