]> granicus.if.org Git - clang/commitdiff
Revert "[Analysis] Link library dependencies to Analysis plugins"
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 May 2019 00:50:03 +0000 (00:50 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 May 2019 00:50:03 +0000 (00:50 +0000)
This reverts commit r361340. The following builder has been broken for
the past few days because of this commit:

http://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan/

Also revert r361399, which was committed to fix r361340.

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

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

index 149bccf1e0caa9e57c4799cb97fbda1f909fcaee..80e2cdbd3a2582f4e705ba3b9557ed230334c5e3 100644 (file)
@@ -1,12 +1,11 @@
 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)
+if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(CheckerDependencyHandlingAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
-    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()
index 2d6a2095091dc68c36ecb65f44cc54aa343d0f62..6a1d5e852794176b5f2d2f3d5d9540b89d24b662 100644 (file)
@@ -1,12 +1,11 @@
 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)
+if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(CheckerOptionHandlingAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
-    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()
index d0a935c1676ef71ef4b12f9d963357ae0612db14..7c7b2aec1988ddb790956cf01f73e1209424bb36 100644 (file)
@@ -1,12 +1,11 @@
 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)
+if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(SampleAnalyzerPlugin PRIVATE
     clangAnalysis
     clangAST
     clangStaticAnalyzerCore
-    clangStaticAnalyzerFrontend
     LLVMSupport
     )
 endif()