summaryrefslogtreecommitdiff
path: root/SCons/Script
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-10-21 17:16:13 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2022-10-21 17:16:13 -0700
commit20ffb3e37f8b46ef232c28e32006294e4d513e3e (patch)
tree844f153e6886e52ef92014b4fcfda933275ca27e /SCons/Script
parentb23bbee1bfcffab6c22f6d32689a16c093a983d3 (diff)
downloadscons-git-20ffb3e37f8b46ef232c28e32006294e4d513e3e.tar.gz
Migrate Taskmaster tracing to use python logging
Diffstat (limited to 'SCons/Script')
-rw-r--r--SCons/Script/Main.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/SCons/Script/Main.py b/SCons/Script/Main.py
index 22042f532..b90284278 100644
--- a/SCons/Script/Main.py
+++ b/SCons/Script/Main.py
@@ -1291,23 +1291,12 @@ def _build_targets(fs, options, targets, target_top):
"""Leave the order of dependencies alone."""
return dependencies
- def tmtrace_cleanup(tfile):
- tfile.close()
-
- if options.taskmastertrace_file == '-':
- tmtrace = sys.stdout
- elif options.taskmastertrace_file:
- tmtrace = open(options.taskmastertrace_file, 'w')
- atexit.register(tmtrace_cleanup, tmtrace)
- else:
- tmtrace = None
- taskmaster = SCons.Taskmaster.Taskmaster(nodes, task_class, order, tmtrace)
+ taskmaster = SCons.Taskmaster.Taskmaster(nodes, task_class, order, options.taskmastertrace_file)
# Let the BuildTask objects get at the options to respond to the
# various print_* settings, tree_printer list, etc.
BuildTask.options = options
-
is_pypy = platform.python_implementation() == 'PyPy'
# As of 3.7, python removed support for threadless platforms.
# See https://www.python.org/dev/peps/pep-0011/