print-lldb-path

Last-Update: 2020-01-21

Gbp-Pq: Name print-lldb-path.patch
This commit is contained in:
Gianfranco Costamagna 2022-07-16 17:45:44 +08:00 committed by Lu zhiping
parent 4db6b34b1e
commit eaf6f9d49d
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,8 @@ void ScriptInterpreterPython::ComputePythonDir(
// 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.GetDirectory().SetString(),