forked from OSchip/llvm-project
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. llvm-svn: 225218
This commit is contained in:
parent
6837077fcf
commit
d1d5cc27d6
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue