summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-01-05 22:29:19 +0000
committerZachary Turner <zturner@google.com>2015-01-05 22:29:19 +0000
commitd1d5cc27d68aa63afa9c964dd61cb6272eabe8b7 (patch)
treed011404a0cf72d1e764081d2c7612c109827619d /lldb/scripts
parent6837077fcf393b1acf6a7b3dd1f6833b75ee90bb (diff)
downloadbcm5719-llvm-d1d5cc27d68aa63afa9c964dd61cb6272eabe8b7.tar.gz
bcm5719-llvm-d1d5cc27d68aa63afa9c964dd61cb6272eabe8b7.zip
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
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt
index 38bc9cccd67..652bb07a4cd 100644
--- a/lldb/scripts/CMakeLists.txt
+++ b/lldb/scripts/CMakeLists.txt
@@ -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(
OpenPOWER on IntegriCloud