[Lldb-commits] [PATCH] D27476: Install lldb Python module on Windows.
Zachary Turner via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 6 14:16:20 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291291: Install lldb Python module on Windows. (authored by zturner).
Changed prior to commit:
https://reviews.llvm.org/D27476?vs=80456&id=83427#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27476
Files:
lldb/trunk/scripts/CMakeLists.txt
Index: lldb/trunk/scripts/CMakeLists.txt
===================================================================
--- lldb/trunk/scripts/CMakeLists.txt
+++ lldb/trunk/scripts/CMakeLists.txt
@@ -11,8 +11,13 @@
include(FindPythonInterp)
-set(SWIG_PYTHON_DIR
- ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
+if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
+ set(SWIG_PYTHON_DIR
+ ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
+else()
+ set(SWIG_PYTHON_DIR ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/site-packages)
+endif()
+
set(SWIG_INSTALL_DIR lib${LLVM_LIBDIR_SUFFIX})
# Generating the LLDB framework correctly is a bit complicated because the
@@ -48,10 +53,8 @@
add_custom_target(swig_wrapper ALL DEPENDS ${LLDB_WRAP_PYTHON})
-# Install the LLDB python module on all operating systems (except Windows)
-if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
- install(DIRECTORY ${SWIG_PYTHON_DIR} DESTINATION ${SWIG_INSTALL_DIR})
-endif()
+# Install the LLDB python module
+install(DIRECTORY ${SWIG_PYTHON_DIR} DESTINATION ${SWIG_INSTALL_DIR})
# build Python modules
add_subdirectory(Python/modules)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27476.83427.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170106/d26ad224/attachment.bin>
More information about the lldb-commits
mailing list