commit: 8244fd0ba178b04fff863097baf5c2ec2c849f78
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 17:18:22 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 13 17:35:06 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8244fd0b
sys-devel/llvm: Enable installing gtest targets in 17.0.0.9999
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-devel/llvm/llvm-17.0.0.9999.ebuild | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/sys-devel/llvm/llvm-17.0.0.9999.ebuild
b/sys-devel/llvm/llvm-17.0.0.9999.ebuild
index 6b874a5fe20f..f7e501b7f98e 100644
--- a/sys-devel/llvm/llvm-17.0.0.9999.ebuild
+++ b/sys-devel/llvm/llvm-17.0.0.9999.ebuild
@@ -67,8 +67,7 @@ PDEPEND="
binutils-plugin? ( >=sys-devel/llvmgold-${LLVM_MAJOR} )
"
-LLVM_COMPONENTS=( llvm cmake )
-LLVM_TEST_COMPONENTS=( third-party )
+LLVM_COMPONENTS=( llvm cmake third-party )
LLVM_MANPAGES=1
LLVM_USE_TARGETS=provide
llvm.org_set_globals
@@ -127,6 +126,9 @@ check_distribution_components() {
# TableGen lib + deps
LLVMDemangle|LLVMSupport|LLVMTableGen)
;;
+ # testing libraries
+
LLVMTestingAnnotations|LLVMTestingSupport)
+ ;;
# static libs
LLVM*)
continue
@@ -203,6 +205,12 @@ get_distribution_components() {
LLVMDemangle
LLVMSupport
LLVMTableGen
+
+ # testing libraries
+ llvm_gtest
+ llvm_gtest_main
+ LLVMTestingAnnotations
+ LLVMTestingSupport
)
if multilib_is_native_abi; then
@@ -350,8 +358,9 @@ multilib_src_configure() {
-DLLVM_TARGETS_TO_BUILD=""
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
-DLLVM_INCLUDE_BENCHMARKS=OFF
- -DLLVM_INCLUDE_TESTS=$(usex test)
+ -DLLVM_INCLUDE_TESTS=ON
-DLLVM_BUILD_TESTS=$(usex test)
+ -DLLVM_INSTALL_GTEST=ON
-DLLVM_ENABLE_FFI=$(usex libffi)
-DLLVM_ENABLE_LIBEDIT=$(usex libedit)