Author: Gianfranco Costamagna Last-Update: 2020-01-21 Index: llvm-toolchain-snapshot_16~++20220731055325+02b3a358926e/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp =================================================================== --- llvm-toolchain-snapshot_16~++20220731055325+02b3a358926e.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ llvm-toolchain-snapshot_16~++20220731055325+02b3a358926e/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -239,6 +239,8 @@ void ScriptInterpreterPython::ComputePyt // x86_64, or bin on Windows). llvm::sys::path::remove_filename(path); llvm::sys::path::append(path, LLDB_PYTHON_RELATIVE_LIBDIR); + // remove double "lib/lib" statement + std::replace(path.begin(), path.end(), '/lib/lib/', '/lib/'); #if defined(_WIN32) // This will be injected directly through FileSpec.SetDirectory(),