summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index c98c7aa..fbc8454 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -1188,7 +1188,7 @@ class Base(SubstitutionEnvironment):
if args:
nargs = nargs + self.subst_list(args)[0]
nkw = self.subst_kw(kw)
- nkw['called_from_env_method'] = 1
+ nkw['_depth'] = kw.get('_depth', 0) + 1
try:
nkw['custom_tests'] = self.subst_kw(nkw['custom_tests'])
except KeyError: