]> granicus.if.org Git - clang/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/cfe/trunk@361340 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/plugins/CheckerDependencyHandling/CMakeLists.txt
test/Analysis/plugins/CheckerOptionHandling/CMakeLists.txt
test/Analysis/plugins/SampleAnalyzer/CMakeLists.txt

index 80e2cdbd3a2582f4e705ba3b9557ed230334c5e3..149bccf1e0caa9e57c4799cb97fbda1f909fcaee 100644 (file)
@@ -1,11 +1,12 @@
 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/CheckerDependencyHandlingAnalyzerPlugin.exports)
 add_llvm_library(CheckerDependencyHandlingAnalyzerPlugin MODULE CheckerDependencyHandling.cpp PLUGIN_TOOL clang)
 
-if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
+if(LLVM_ENABLE_PLUGINS)
   target_link_libraries(CheckerDependencyHandlingAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
+    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()
index 6a1d5e852794176b5f2d2f3d5d9540b89d24b662..2d6a2095091dc68c36ecb65f44cc54aa343d0f62 100644 (file)
@@ -1,11 +1,12 @@
 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/CheckerOptionHandlingAnalyzerPlugin.exports)
 add_llvm_library(CheckerOptionHandlingAnalyzerPlugin MODULE CheckerOptionHandling.cpp PLUGIN_TOOL clang)
 
-if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
+if(LLVM_ENABLE_PLUGINS)
   target_link_libraries(CheckerOptionHandlingAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
+    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()
index 7c7b2aec1988ddb790956cf01f73e1209424bb36..d0a935c1676ef71ef4b12f9d963357ae0612db14 100644 (file)
@@ -1,11 +1,12 @@
 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
 add_llvm_library(SampleAnalyzerPlugin MODULE MainCallChecker.cpp PLUGIN_TOOL clang)
 
-if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
+if(LLVM_ENABLE_PLUGINS)
   target_link_libraries(SampleAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
+    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()