print-lldb-path

Last-Update: 2020-01-21

Gbp-Pq: Name print-lldb-path.patch
This commit is contained in:
Gianfranco Costamagna 2022-06-27 14:59:00 +08:00 committed by Lu zhiping
parent b90028ad2a
commit c2bb5be854
1 changed files with 4 additions and 3 deletions

View File

@ -336,10 +336,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
}