[lldb-dev] help, how to get a debug build on windows (python37_d.lib)
Larry D'Anna via lldb-dev
lldb-dev at lists.llvm.org
Sun Sep 22 11:20:50 PDT 2019
Hi lldb-dev.
I can’t seem to figure out how to build a debug lldb on windows. It wants to link against a debug version of Python, which isn’t there.
My cmake line looks like this:
cmake -G Ninja `
"-DPYTHON_HOME=C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64" `
"-DLLVM_ENABLE_PROJECTS=clang;lldb;libcxx;libcxxabi;lld" `
"-DSWIG_EXECUTABLE=C:\ProgramData\chocolatey\bin\swig.exe" `
"C:\Users\smoofra\llvm-project\llvm"
I also made this change, to tell it to link against the release python.
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -227,7 +227,7 @@ function(find_python_libs_windows)
else()
# Lookup for concrete python installation depending on build type
if (CMAKE_BUILD_TYPE STREQUAL Debug)
- set(LOOKUP_DEBUG_PYTHON TRUE)
+ set(LOOKUP_DEBUG_PYTHON FALSE)
else()
set(LOOKUP_DEBUG_PYTHON FALSE)
endif()
But somehow at the very end, the link still fails because python37_d.lib isn’t there.
Anybody know what I’m doing wrong? Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190922/041e5285/attachment.html>
More information about the lldb-dev
mailing list