]> granicus.if.org Git - clang/commitdiff
[Analysis] Only build Analysis plugins when CLANG_ENABLE_STATIC_ANALYZER is enabled.
authorDon Hinton <hintonda@gmail.com>
Tue, 4 Jun 2019 22:07:40 +0000 (22:07 +0000)
committerDon Hinton <hintonda@gmail.com>
Tue, 4 Jun 2019 22:07:40 +0000 (22:07 +0000)
Fixes bug introduced in r362328.

Thanks to Nathan Chancellor for reporting this!

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

lib/Analysis/plugins/CMakeLists.txt

index f7dbc936952cc1d8735d52d15737cb3c41a5036f..bd7314a871fc50e57dedcb6ce7dc20b24c254bf8 100644 (file)
@@ -1,4 +1,4 @@
-if(LLVM_ENABLE_PLUGINS)
+if(CLANG_ENABLE_STATIC_ANALYZER AND LLVM_ENABLE_PLUGINS)
   add_subdirectory(SampleAnalyzer)
   add_subdirectory(CheckerDependencyHandling)
   add_subdirectory(CheckerOptionHandling)