commit:     b3926f2d298678956ff669926e49372b07dfaa87
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 24 12:16:31 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 24 12:28:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3926f2d

llvm-core/clang: Remove c-index-test again

c-index-test is only available when tests are enabled.  Do not install
it at all, and ignore the target when checking distribution components.

Thanks to stefson for reporting.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 llvm-core/clang/clang-22.0.0.9999.ebuild        | 5 ++++-
 llvm-core/clang/clang-22.0.0_pre20251223.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/llvm-core/clang/clang-22.0.0.9999.ebuild 
b/llvm-core/clang/clang-22.0.0.9999.ebuild
index a7f3759197b4..f325fb4c4cd5 100644
--- a/llvm-core/clang/clang-22.0.0.9999.ebuild
+++ b/llvm-core/clang/clang-22.0.0.9999.ebuild
@@ -114,6 +114,10 @@ check_distribution_components() {
                                        docs-clang-html|docs-clang-tools-html)
                                                use doc || continue
                                                ;;
+                                       # built only with tests
+                                       c-index-test)
+                                               continue
+                                               ;;
                                esac
 
                                all_targets+=( "${l}" )
@@ -190,7 +194,6 @@ get_distribution_components() {
                        libclang-python-bindings
 
                        # tools
-                       c-index-test
                        clang
                        clang-format
                        clang-installapi

diff --git a/llvm-core/clang/clang-22.0.0_pre20251223.ebuild 
b/llvm-core/clang/clang-22.0.0_pre20251223.ebuild
index a7f3759197b4..f325fb4c4cd5 100644
--- a/llvm-core/clang/clang-22.0.0_pre20251223.ebuild
+++ b/llvm-core/clang/clang-22.0.0_pre20251223.ebuild
@@ -114,6 +114,10 @@ check_distribution_components() {
                                        docs-clang-html|docs-clang-tools-html)
                                                use doc || continue
                                                ;;
+                                       # built only with tests
+                                       c-index-test)
+                                               continue
+                                               ;;
                                esac
 
                                all_targets+=( "${l}" )
@@ -190,7 +194,6 @@ get_distribution_components() {
                        libclang-python-bindings
 
                        # tools
-                       c-index-test
                        clang
                        clang-format
                        clang-installapi

Reply via email to