[lldb-dev] help, how to get a debug build on windows (python37_d.lib)
Ted Woodward via lldb-dev
lldb-dev at lists.llvm.org
Mon Sep 23 10:05:02 PDT 2019
You can tell the Python installer to install the debug libraries.
I recently switch from VS 2015 to VS 2017 to build LLDB. My debug builds stopped working – it couldn’t link with the Python debug library, even though I had it in the right place. My guess is the Python I’m using (3.5.1) was built with 2015, and the 2017 linker didn’t like linking against the debug library built with 2015.
I switched from a Debug build to RelWithDebInfo, and it worked.
From: lldb-dev <lldb-dev-bounces at lists.llvm.org> On Behalf Of Larry D'Anna via lldb-dev
Sent: Sunday, September 22, 2019 1:21 PM
To: lldb-dev at lists.llvm.org
Subject: [EXT] [lldb-dev] help, how to get a debug build on windows (python37_d.lib)
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" `
I also made this change, to tell it to link against the release python.
@@ -227,7 +227,7 @@ function(find_python_libs_windows)
# 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)
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...
More information about the lldb-dev