[polly] 96b0280 - [Polly] Support linking ScopPassManager against LLVM dylib

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 21:47:08 PDT 2020


Author: Michał Górny
Date: 2020-08-07T06:46:35+02:00
New Revision: 96b02808afa7eb043b9968b07424cc96bc8d94a6

URL: https://github.com/llvm/llvm-project/commit/96b02808afa7eb043b9968b07424cc96bc8d94a6
DIFF: https://github.com/llvm/llvm-project/commit/96b02808afa7eb043b9968b07424cc96bc8d94a6.diff

LOG: [Polly] Support linking ScopPassManager against LLVM dylib

Link ScopPassManager to LLVM dylib target if LLVM_LINK_LLVM_DYLIB
is enabled.  This fixes build failures on systems where static LLVM
libraries are not installed.

Differential Revision: https://reviews.llvm.org/D85281

Added: 
    

Modified: 
    polly/unittests/ScopPassManager/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/polly/unittests/ScopPassManager/CMakeLists.txt b/polly/unittests/ScopPassManager/CMakeLists.txt
index ed3bbd6dcef4..88300144af35 100644
--- a/polly/unittests/ScopPassManager/CMakeLists.txt
+++ b/polly/unittests/ScopPassManager/CMakeLists.txt
@@ -1,5 +1,7 @@
-llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
 add_polly_unittest(ScopPassManagerTests
   PassManagerTest.cpp
   )
-target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
+if (NOT LLVM_LINK_LLVM_DYLIB)
+  llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
+  target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
+endif()


        


More information about the llvm-commits mailing list