Skip to content

Commit 96b0280

Browse files
committed
[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
1 parent c530539 commit 96b0280

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
21
add_polly_unittest(ScopPassManagerTests
32
PassManagerTest.cpp
43
)
5-
target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
4+
if (NOT LLVM_LINK_LLVM_DYLIB)
5+
llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
6+
target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})
7+
endif()

0 commit comments

Comments
 (0)