diff options
| author | Zachary Turner <zturner@google.com> | 2017-01-06 22:05:35 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-01-06 22:05:35 +0000 |
| commit | 5a4167fbd3a302caee988028264a03b552c1bfec (patch) | |
| tree | bc7b833c046bfc1daf96808d41272990dc897651 /lldb/scripts | |
| parent | 90a03ec8f6d748acd511003335c36847da260bd5 (diff) | |
| download | bcm5719-llvm-5a4167fbd3a302caee988028264a03b552c1bfec.tar.gz bcm5719-llvm-5a4167fbd3a302caee988028264a03b552c1bfec.zip | |
Install lldb Python module on Windows.
Patch by Vadim Chugunov
Differential Revision: https://reviews.llvm.org/D27476
llvm-svn: 291291
Diffstat (limited to 'lldb/scripts')
| -rw-r--r-- | lldb/scripts/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt index 18389c6c69d..fad841b37c0 100644 --- a/lldb/scripts/CMakeLists.txt +++ b/lldb/scripts/CMakeLists.txt @@ -11,8 +11,13 @@ set(SWIG_HEADERS 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 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/lldb.py PROPERTIES GENER 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) |

