]> granicus.if.org Git - llvm/commitdiff
[Analysis] Link library dependencies to Analysis plugins
authorPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 00:47:37 +0000 (00:47 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 00:47:37 +0000 (00:47 +0000)
These are needed to avoid undefined symbols which aren't satisfied
by Clang itself.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361340 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index cb9a01e1d39f7899cca3692394ec34647c500af0..e7e6f982949e3a83e154c4dafd9006013809d754 100644 (file)
@@ -914,10 +914,14 @@ endif()
 
 # Plugin support
 # FIXME: Make this configurable.
-if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
-  set(LLVM_ENABLE_PLUGINS ON)
+if(WIN32 OR CYGWIN)
+  if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
+    set(LLVM_ENABLE_PLUGINS ON)
+  else()
+    set(LLVM_ENABLE_PLUGINS OFF)
+  endif()
 else()
-  set(LLVM_ENABLE_PLUGINS OFF)
+  set(LLVM_ENABLE_PLUGINS ON)
 endif()
 
 # By default we should enable LLVM_ENABLE_IDE only for multi-configuration