From f49f96cb84dd942dddba9872b62d17e44789622a Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 31 Aug 2020 11:28:24 +0100 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 7fdc7d0be..0f18700bb 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -127,14 +127,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