[clang] [clang][ssaf] Fix CLANG_PLUGIN_SUPPORT=OFF SSAFExamplePlugin cmake errors (PR #191229)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 9 09:05:25 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Hans Wennborg (zmodem)
<details>
<summary>Changes</summary>
Such builds would fail with:
```
...
CMake Error at cmake/modules/AddLLVM.cmake:2245 (add_dependencies):
The dependency target "SSAFExamplePlugin" of target
"check-clang-utils-update_cc_test_checks" does not exist.
...
```
This fixes it by using the same condition for the test dependency as is used for deciding to build the plugin in clang/lib/ScalableStaticAnalysisFramework/Plugins/CMakeLists.txt
---
Full diff: https://github.com/llvm/llvm-project/pull/191229.diff
1 Files Affected:
- (modified) clang/test/CMakeLists.txt (+1-1)
``````````diff
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index 0f046b24c2747..9bd21c013b092 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -207,7 +207,7 @@ if(CLANG_ENABLE_STATIC_ANALYZER)
endif()
endif()
-if(LLVM_ENABLE_PLUGINS)
+if(CLANG_PLUGIN_SUPPORT AND LLVM_ENABLE_PLUGINS)
list(APPEND CLANG_TEST_DEPS
SSAFExamplePlugin
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/191229
More information about the cfe-commits
mailing list