From b4561b68db1b8e3efb0aa7c34a464d69a3ebfd23 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sat, 7 Nov 2020 14:53:51 +0000 Subject: [PATCH] D67877 Origin: https://reviews.llvm.org/D67877 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941082 Gbp-Pq: Name D67877.patch --- clang/lib/Analysis/plugins/CMakeLists.txt | 2 +- clang/test/CMakeLists.txt | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/clang/lib/Analysis/plugins/CMakeLists.txt b/clang/lib/Analysis/plugins/CMakeLists.txt index bd7314a87..ad54e6537 100644 --- a/clang/lib/Analysis/plugins/CMakeLists.txt +++ b/clang/lib/Analysis/plugins/CMakeLists.txt @@ -1,4 +1,4 @@ -if(CLANG_ENABLE_STATIC_ANALYZER AND LLVM_ENABLE_PLUGINS) +if(CLANG_ENABLE_STATIC_ANALYZER AND LLVM_ENABLE_PLUGINS AND CLANG_BUILD_EXAMPLES) add_subdirectory(SampleAnalyzer) add_subdirectory(CheckerDependencyHandling) add_subdirectory(CheckerOptionHandling) diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index 38bbc5be9..0c4bb6d67 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -138,14 +138,12 @@ if( NOT CLANG_BUILT_STANDALONE ) endif() endif() -if (CLANG_ENABLE_STATIC_ANALYZER) - if (LLVM_ENABLE_PLUGINS) - list(APPEND CLANG_TEST_DEPS - SampleAnalyzerPlugin - CheckerDependencyHandlingAnalyzerPlugin - CheckerOptionHandlingAnalyzerPlugin - ) - endif() +if (CLANG_ENABLE_STATIC_ANALYZER AND CLANG_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS) + list(APPEND CLANG_TEST_DEPS + SampleAnalyzerPlugin + CheckerDependencyHandlingAnalyzerPlugin + CheckerOptionHandlingAnalyzerPlugin + ) endif() # Copy gen_ast_dump_json_test.py to the clang build dir. This allows invoking -- 2.30.2