[multilib] Teach Polly's CMake to use the libdir suffix variable. This
authorChandler Carruth <chandlerc@gmail.com>
Mon, 19 Jan 2015 01:03:05 +0000 (01:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 19 Jan 2015 01:03:05 +0000 (01:03 +0000)
lets 'ninja check-polly' pass for me with a lib64 build of LLVM.

I've not updated the standalone side as I don't use it and don't have an
easy way to test any changes I've made there. I mostly wanted to be able
to actually run Polly's tests when I update its use of LLVM's APIs
during my refactorings on the (very unlikely) off chance that I make
a change which compiles but does the wrong thing.

llvm-svn: 226420

polly/test/CMakeLists.txt

index a31562b..76250ee 100644 (file)
@@ -66,7 +66,7 @@ else (NOT DEFINED LLVM_MAIN_SRC_DIR)
 
   set(LLVM_BINARY_DIR "${LLVM_BINARY_DIR}")
   set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}")
-  set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib")
+  set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}")
   set(POLLY_LIB_DIR "${LLVM_LIBS_DIR}")
 
   add_lit_testsuite(check-polly "Running polly regression tests"