[Lldb-commits] [lldb] [lldb][windows] print an error if python.dll is not in the DLL search path (PR #164893)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 27 05:35:58 PDT 2025
================
@@ -447,30 +448,66 @@ inline std::wstring GetPathToExecutableW() {
return L"";
}
-/// Resolve the full path of the directory defined by
+/// \brief Resolve the full path of the directory defined by
/// LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL
/// search directories.
-void AddPythonDLLToSearchPath() {
+/// \return `true` if the library was added to the search path.
+/// `false` otherwise.
+bool AddPythonDLLToSearchPath() {
std::wstring modulePath = GetPathToExecutableW();
if (modulePath.empty()) {
- llvm::errs() << "error: unable to find python.dll." << '\n';
- return;
+ return false;
}
----------------
compnerd wrote:
I would remove the braces too.
https://github.com/llvm/llvm-project/pull/164893
More information about the lldb-commits
mailing list