Author: Jonas Devlieghere Date: 2022-02-14T12:18:12-08:00 New Revision: d52866e1a82dab57ad1b58a8bf21ca63eae2e155
URL: https://github.com/llvm/llvm-project/commit/d52866e1a82dab57ad1b58a8bf21ca63eae2e155 DIFF: https://github.com/llvm/llvm-project/commit/d52866e1a82dab57ad1b58a8bf21ca63eae2e155.diff LOG: [lldb] Stop forwarding LLDB_DEFAULT_PYTHON_VERSION in crashlog Support for Python 2 was removed in Xcode 13. Differential revision: https://reviews.llvm.org/D119756 Added: Modified: lldb/examples/python/crashlog.py Removed: ################################################################################ diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index b8fe642db849d..ec9f2d4e92db6 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -49,11 +49,9 @@ except ImportError: # Ask the command line driver for the path to the lldb module. Copy over # the environment so that SDKROOT is propagated to xcrun. - env = os.environ.copy() - env['LLDB_DEFAULT_PYTHON_VERSION'] = str(sys.version_info.major) command = ['xcrun', 'lldb', '-P'] if platform.system() == 'Darwin' else ['lldb', '-P'] # Extend the PYTHONPATH if the path exists and isn't already there. - lldb_python_path = subprocess.check_output(command, env=env).decode("utf-8").strip() + lldb_python_path = subprocess.check_output(command).decode("utf-8").strip() if os.path.exists(lldb_python_path) and not sys.path.__contains__(lldb_python_path): sys.path.append(lldb_python_path) # Try importing LLDB again. _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits