[PATCH] D51986: Fixes for `LLVM_LINK_LLVM_DYLIB` && Polly.

Richard Diamond via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 12 07:23:31 PDT 2018


DiamondLovesYou created this revision.
DiamondLovesYou added a reviewer: beanz.
Herald added subscribers: cfe-commits, mgorny.
Herald added a reviewer: bollu.

clang doesn't need to link Polly when built with `LLVM_LINK_LLVM_DYLIB`.


Repository:
  rC Clang

https://reviews.llvm.org/D51986

Files:
  tools/driver/CMakeLists.txt


Index: tools/driver/CMakeLists.txt
===================================================================
--- tools/driver/CMakeLists.txt
+++ tools/driver/CMakeLists.txt
@@ -122,6 +122,6 @@
   endif()
 endif()
 
-if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
+if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS AND NOT LLVM_LINK_LLVM_DYLIB)
   target_link_libraries(clang PRIVATE Polly)
 endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51986.165081.patch
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180912/561be518/attachment.bin>


More information about the cfe-commits mailing list