[Lldb-commits] [lldb] [lldb][windows] print an error if python.dll is not in the DLL search path (PR #164893)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 24 14:43:22 PDT 2025


charles-zablit wrote:

@mstorsjo my understanding is that `Python3_RUNTIME_LIBRARY` should always be set to something (according to https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/FindPython/Support.cmake#L3868-3874) and that it's an undocumented public variable.

I see 2 solutions:
- We either rely on this public variable even though it's not documented.
- We try to guess the Python shared library based on the environment: `if MSVC "python310.dll" else "lib python3.10.dll"`. This is only needed on Windows anyways (for now).

I prefer the first solution because it defers the logic to CMake, but you are saying that `Python3_RUNTIME_LIBRARY` and `_ Python3_RUNTIME_LIBRARY_RELEASE` and `_ Python3_RUNTIME_LIBRARY_DEBUG` are empty when you run it?

https://github.com/llvm/llvm-project/pull/164893


More information about the lldb-commits mailing list