summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Executor.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2013-10-28 02:04:46 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2013-10-28 02:04:46 (GMT)
commite38f59cab5d40f09f15c5e65645aa2d8af165c66 (patch)
treed50c9d77698c3a82fcc4b64a5ff61b79c20a76f2 /src/engine/SCons/Executor.py
parente7888b15628b09af093621825b78df5cbcead088 (diff)
parent2be0f31b80087974b5e6d53e12542637636a2253 (diff)
downloadSCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.zip
SCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.tar.gz
SCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.tar.bz2
Merged in dirkbaechle/scons (pull request #92)
Fix: now counting instances only when requested via --debug=count (#2922)
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()