From: Gianfranco Costamagna Date: Thu, 19 Mar 2020 08:50:20 +0000 (+0000) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%8.0.1-9+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dcff0706b525923f64a07c048361c05aa58338c7;p=llvm-toolchain-8.git print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Name print-lldb-path.patch --- diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 41cb443d4..511cf6e11 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -385,10 +385,11 @@ void ScriptInterpreterPython::ComputePythonDirForPosix( llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, LLDB_PYTHON_RELATIVE_LIBDIR); #else + llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, - "python" + llvm::Twine(PY_MAJOR_VERSION) + "." + - llvm::Twine(PY_MINOR_VERSION), - "site-packages"); + "python3"/* + llvm::Twine(PY_MAJOR_VERSION) + "." + + llvm::Twine(PY_MINOR_VERSION)*/, + "dist-packages"); #endif }