summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/modules
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-12-29 12:42:33 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-12-29 12:42:33 +0000
commit875d3bb5386380ae9aa1a0d467fea0cdefb04f89 (patch)
tree90ad25f889723583bfe4aa117c5976c196e20833 /lldb/scripts/Python/modules
parente471e1363e70da7f05e1a2c381a49c06f1bc0b60 (diff)
downloadbcm5719-llvm-875d3bb5386380ae9aa1a0d467fea0cdefb04f89.tar.gz
bcm5719-llvm-875d3bb5386380ae9aa1a0d467fea0cdefb04f89.zip
[cmake/multilib] Teach LLDB to respect the multlib LLVM_LIBDIR_SUFFIX
variable (now provided both by the normal parent LLVM CMake files and by the LLVMConfig.cmake file used by the standalone build). This allows LLDB to build into and install into correctly suffixed libdirs. This is especially significant for LLDB because the python extension building done by CMake directly uses multilib suffixes when the host OS does, and the host OS will not always look back and forth between them. As a consequence, before LLVM, Clang, and LLDB (and every other subproject) had support for using LLVM_LIBDIR_SUFFIX, you couldn't build or install LLDB on a multilib system with its python extensions enabled. With this patch (on top of all the others I have submitted throughout the project), I'm finally able to build and install LLDB on my system with Python support enabled. I'm also able to actually run the LLDB test suite, etc. Now, a *huge* number of the tests still fail on my Linux system, but hey, actually running them and them testing the debugger is a huge step forward. =D llvm-svn: 224930
Diffstat (limited to 'lldb/scripts/Python/modules')
-rw-r--r--lldb/scripts/Python/modules/readline/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/Python/modules/readline/CMakeLists.txt b/lldb/scripts/Python/modules/readline/CMakeLists.txt
index e0613a32b4f..2e1afa1f73b 100644
--- a/lldb/scripts/Python/modules/readline/CMakeLists.txt
+++ b/lldb/scripts/Python/modules/readline/CMakeLists.txt
@@ -13,7 +13,7 @@ add_library(readline SHARED readline.cpp)
# python finds it when loading the python readline module.
set_target_properties(readline PROPERTIES
PREFIX ""
- LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib/${PYTHON_DIRECTORY})
+ LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/${PYTHON_DIRECTORY})
# Install the readline module.
-install(TARGETS readline LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/${PYTHON_DIRECTORY})
+install(TARGETS readline LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX}/${PYTHON_DIRECTORY})
OpenPOWER on IntegriCloud