summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Executor.py
diff options
context:
space:
mode:
authorTom Tanner <ttanner2@bloomberg.net>2013-10-30 12:33:19 (GMT)
committerTom Tanner <ttanner2@bloomberg.net>2013-10-30 12:33:19 (GMT)
commit7fdab2a7cae767172f4dcea67c3ab4d1a37926e2 (patch)
tree005ece6f3e371cee63e68bf070447c245592d6ed /src/engine/SCons/Executor.py
parent91020237d64f53b2fa6e2b5bf155a1d8bfbdb547 (diff)
parente38f59cab5d40f09f15c5e65645aa2d8af165c66 (diff)
downloadSCons-7fdab2a7cae767172f4dcea67c3ab4d1a37926e2.zip
SCons-7fdab2a7cae767172f4dcea67c3ab4d1a37926e2.tar.gz
SCons-7fdab2a7cae767172f4dcea67c3ab4d1a37926e2.tar.bz2
Merged scons/scons into default
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r--src/engine/SCons/Executor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py
index 6f2489b..7875537 100644
--- a/src/engine/SCons/Executor.py
+++ b/src/engine/SCons/Executor.py
@@ -31,6 +31,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import collections
+import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Errors
import SCons.Memoize
@@ -123,7 +124,7 @@ class Executor(object):
def __init__(self, action, env=None, overridelist=[{}],
targets=[], sources=[], builder_kw={}):
- if __debug__: logInstanceCreation(self, 'Executor.Executor')
+ if SCons.Debug.track_instances: logInstanceCreation(self, 'Executor.Executor')
self.set_action_list(action)
self.pre_actions = []
self.post_actions = []
@@ -575,7 +576,7 @@ class Null(object):
going to worry about unit tests for this--at least for now.
"""
def __init__(self, *args, **kw):
- if __debug__: logInstanceCreation(self, 'Executor.Null')
+ if SCons.Debug.track_instances: logInstanceCreation(self, 'Executor.Null')
self.batches = [Batch(kw['targets'][:], [])]
def get_build_env(self):
return get_NullEnvironment()