diff mbox series

[v4,2/7] clang: disable all test targets

Message ID 20250924120834.2886320-2-ross.burton@arm.com
State Accepted, archived
Commit ba358a03c97cb904248b743c483a7b3f4b9159a9
Headers show
Series [v4,1/7] clang: improve opt-viewer PACKAGECONFIG | expand

Commit Message

Ross Burton Sept. 24, 2025, 12:08 p.m. UTC
We don't install the tests, or run them in the build tree, so tell cmake
not to generate the targets at all. This removes internal dependencies
which means we can turn off more components that we don't want.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-devtools/clang/clang_git.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/clang/clang_git.bb b/meta/recipes-devtools/clang/clang_git.bb
index af934b0f6ed..aed584003fd 100644
--- a/meta/recipes-devtools/clang/clang_git.bb
+++ b/meta/recipes-devtools/clang/clang_git.bb
@@ -120,6 +120,7 @@  EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \
                   -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}' \
                   -DLLVM_NATIVE_TOOL_DIR=${STAGING_BINDIR_NATIVE} \
                   -DLLVM_HEADERS_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-min-tblgen \
+                  -DLLVM_INCLUDE_TESTS=OFF \
 "
 
 EXTRA_OECMAKE:append:class-nativesdk = "\