refactor lldb backend setup:

- call get_lldb_python_exe for more robust python-getting
This commit is contained in:
Zachary Cutlip 2019-11-06 15:42:05 -08:00
parent 9121d4b066
commit aa20166a79
1 changed files with 1 additions and 4 deletions

View File

@ -186,11 +186,8 @@ if [ "${BACKEND_GDB}" -eq 1 ]; then
fi fi
if [ "${BACKEND_LLDB}" -eq 1 ]; then if [ "${BACKEND_LLDB}" -eq 1 ]; then
# Find the Python version used by LLDB
LLDB_PYVER=$(${LLDB} -Qxb --one-line 'script import platform; print(".".join(platform.python_version_tuple()[:2]))'|tail -1)
LLDB_PYTHON=$(${LLDB} -Qxb --one-line 'script import sys; print(sys.executable)'|tail -1)
LLDB_PYTHON="${LLDB_PYTHON/%$LLDB_PYVER/}${LLDB_PYVER}"
LLDB_PYTHON=$(get_lldb_python_exe)
${LLDB_PYTHON} -m pip install --user --upgrade six ${LLDB_PYTHON} -m pip install --user --upgrade six
if [ -n "${VENV}" ]; then if [ -n "${VENV}" ]; then