OSDN Git Service

Make Polly tests dependencies explicit
authorserge-sans-paille <sguelton@redhat.com>
Mon, 4 May 2020 06:06:39 +0000 (08:06 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Mon, 4 May 2020 06:06:39 +0000 (08:06 +0200)
Due to libPolly now using the component infrastructure, it no longer carries all
dependencies as it used to do.

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

polly/unittests/ScopPassManager/CMakeLists.txt

index 59c5a4a..ed3bbd6 100644 (file)
@@ -1,3 +1,5 @@
+llvm_map_components_to_libnames(llvm_libs Passes Core Analysis)
 add_polly_unittest(ScopPassManagerTests
   PassManagerTest.cpp
   )
+target_link_libraries(ScopPassManagerTests PRIVATE ${llvm_libs})