[Analysis] Only build Analysis plugins when CLANG_ENABLE_STATIC_ANALYZER is enabled.

Fixes bug introduced in r362328.

Thanks to Nathan Chancellor for reporting this!

llvm-svn: 362555
This commit is contained in:
Don Hinton 2019-06-04 22:07:40 +00:00
parent 06c801e153
commit a33eaad00c
1 changed files with 1 additions and 1 deletions

View 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)