Skip to content

Commit 5c92d95

Browse files
committed
[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 (cherry picked from commit d52866e)
1 parent 698e047 commit 5c92d95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/examples/python/crashlog.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@
4949
except ImportError:
5050
# Ask the command line driver for the path to the lldb module. Copy over
5151
# the environment so that SDKROOT is propagated to xcrun.
52-
env = os.environ.copy()
53-
env['LLDB_DEFAULT_PYTHON_VERSION'] = str(sys.version_info.major)
5452
command = ['xcrun', 'lldb', '-P'] if platform.system() == 'Darwin' else ['lldb', '-P']
5553
# Extend the PYTHONPATH if the path exists and isn't already there.
56-
lldb_python_path = subprocess.check_output(command, env=env).decode("utf-8").strip()
54+
lldb_python_path = subprocess.check_output(command).decode("utf-8").strip()
5755
if os.path.exists(lldb_python_path) and not sys.path.__contains__(lldb_python_path):
5856
sys.path.append(lldb_python_path)
5957
# Try importing LLDB again.

0 commit comments

Comments
 (0)