[Lldb-commits] [lldb] [lldb] fix python extension debug suffix on Win (PR #89037)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 23 01:22:01 PDT 2024
================
@@ -75,6 +75,12 @@ if (LLDB_ENABLE_PYTHON)
endif()
endif()
endforeach()
+ if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL Debug)
+ string(SUBSTRING ${LLDB_PYTHON_EXT_SUFFIX} 0 2 FIRST_2_CHARS)
+ if(NOT FIRST_2_CHARS STREQUAL "_d")
----------------
DavidSpickett wrote:
Add some comments to explain why we have this check, something like:
```
# If we are using a debug Python, the expected suffix will already have "_d".
if (...)
# We are using a release Python, but the lldb extension will be built with the "_d" suffix.
```
https://github.com/llvm/llvm-project/pull/89037
More information about the lldb-commits
mailing list