[Lldb-commits] [lldb] r225218 - When building on Windows, copy Python27(_d).dll to the output folder.

Zachary Turner zturner at google.com
Mon Jan 5 14:29:19 PST 2015


Author: zturner
Date: Mon Jan  5 16:29:19 2015
New Revision: 225218

URL: http://llvm.org/viewvc/llvm-project?rev=225218&view=rev
Log:
When building on Windows, copy Python27(_d).dll to the output folder.

When Python does not exist on the system path, LLDB will be unable
to load it.  Fix this by copying the dll to the output folder so
it will be side-by-side with lldb.exe.

Modified:
    lldb/trunk/scripts/CMakeLists.txt

Modified: lldb/trunk/scripts/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/CMakeLists.txt?rev=225218&r1=225217&r2=225218&view=diff
==============================================================================
--- lldb/trunk/scripts/CMakeLists.txt (original)
+++ lldb/trunk/scripts/CMakeLists.txt Mon Jan  5 16:29:19 2015
@@ -2,6 +2,11 @@ set(LLVM_NO_RTTI 1)
 
 file(GLOB SWIG_INPUTS Python/interface/*.i)
 
+if (CMAKE_SYSTEM_NAME MATCHES "Windows")
+    STRING(REGEX REPLACE ".lib" ".dll" PYTHON_DLL ${PYTHON_LIBRARY})
+    file(COPY ${PYTHON_DLL} DESTINATION ${CMAKE_BINARY_DIR}/bin)
+endif ()
+
 if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION )
 	find_package(SWIG REQUIRED)
 	add_custom_command(





More information about the lldb-commits mailing list