]> git.proxmox.com Git - llvm-toolchain.git/blame - debian/patches/D67877.patch
Merge tag 'debian/11.0.0-5' into proxmox/buster
[llvm-toolchain.git] / debian / patches / D67877.patch
CommitLineData
b27d521a
GC
1Origin: https://reviews.llvm.org/D67877
2Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941082
3
df30791e 4Index: llvm-toolchain-snapshot_11~++20200409051253+d08105482e1/clang/lib/Analysis/plugins/CMakeLists.txt
b27d521a 5===================================================================
df30791e
SL
6--- llvm-toolchain-snapshot_11~++20200409051253+d08105482e1.orig/clang/lib/Analysis/plugins/CMakeLists.txt
7+++ llvm-toolchain-snapshot_11~++20200409051253+d08105482e1/clang/lib/Analysis/plugins/CMakeLists.txt
b27d521a
GC
8@@ -1,4 +1,4 @@
9-if(CLANG_ENABLE_STATIC_ANALYZER AND LLVM_ENABLE_PLUGINS)
10+if(CLANG_ENABLE_STATIC_ANALYZER AND LLVM_ENABLE_PLUGINS AND CLANG_BUILD_EXAMPLES)
11 add_subdirectory(SampleAnalyzer)
12 add_subdirectory(CheckerDependencyHandling)
13 add_subdirectory(CheckerOptionHandling)
df30791e 14Index: llvm-toolchain-snapshot_11~++20200409051253+d08105482e1/clang/test/CMakeLists.txt
b27d521a 15===================================================================
df30791e
SL
16--- llvm-toolchain-snapshot_11~++20200409051253+d08105482e1.orig/clang/test/CMakeLists.txt
17+++ llvm-toolchain-snapshot_11~++20200409051253+d08105482e1/clang/test/CMakeLists.txt
18@@ -138,14 +138,12 @@ if( NOT CLANG_BUILT_STANDALONE )
b27d521a
GC
19 endif()
20 endif()
21
22-if (CLANG_ENABLE_STATIC_ANALYZER)
23- if (LLVM_ENABLE_PLUGINS)
24- list(APPEND CLANG_TEST_DEPS
25- SampleAnalyzerPlugin
26- CheckerDependencyHandlingAnalyzerPlugin
27- CheckerOptionHandlingAnalyzerPlugin
28- )
29- endif()
30+if (CLANG_ENABLE_STATIC_ANALYZER AND CLANG_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS)
31+ list(APPEND CLANG_TEST_DEPS
32+ SampleAnalyzerPlugin
33+ CheckerDependencyHandlingAnalyzerPlugin
34+ CheckerOptionHandlingAnalyzerPlugin
35+ )
36 endif()
37
fb2ed040 38 # Copy gen_ast_dump_json_test.py to the clang build dir. This allows invoking