llvm-toolchain/debian/patches/print-lldb-path.patch
2020-03-26 11:16:17 +01:00

17 lines
968 B
Diff

Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2020-01-21
Index: llvm-toolchain-snapshot_11~++20200326111000+4673699a470/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
===================================================================
--- llvm-toolchain-snapshot_11~++20200326111000+4673699a470.orig/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ llvm-toolchain-snapshot_11~++20200326111000+4673699a470/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -377,6 +377,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.GetDirectory().SetString(),