From: Don Hinton Date: Tue, 4 Jun 2019 22:07:40 +0000 (+0000) Subject: [Analysis] Only build Analysis plugins when CLANG_ENABLE_STATIC_ANALYZER is enabled. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45371fed1e3447f0161ebf6f62dda55b84f8df7b;p=clang [Analysis] Only build Analysis plugins when CLANG_ENABLE_STATIC_ANALYZER is enabled. 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 --- diff --git a/lib/Analysis/plugins/CMakeLists.txt b/lib/Analysis/plugins/CMakeLists.txt index f7dbc93695..bd7314a871 100644 --- a/lib/Analysis/plugins/CMakeLists.txt +++ b/lib/Analysis/plugins/CMakeLists.txt @@ -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)