[cmake/multilib] Support multilib libdir suffixes by applying the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 12:26:30 +0000 (12:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 12:26:30 +0000 (12:26 +0000)
LLVM_LIBDIR_SUFFIX variable to one place in the cmake file.

This is all that I had to do to get everything from compiler-rt working
for me, but there may be more work required if folks are relying on more
parts of compiler-rt. Notably, I'm mostly using it for the sanitizers.

llvm-svn: 224928

compiler-rt/CMakeLists.txt

index 30a7ccd..8a7bfd8 100644 (file)
@@ -104,7 +104,8 @@ else()
   # Get some LLVM variables from LLVMConfig.
   include("${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
 
-  set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib)
+  set(LLVM_LIBRARY_OUTPUT_INTDIR
+    ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
 
   # Find Python interpreter.
   set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)