diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-03-12 18:18:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-03-13 18:35:06 +0100 |
commit | 8244fd0ba178b04fff863097baf5c2ec2c849f78 (patch) | |
tree | b65d283db2db215204b2bb4f908f6dd089266beb /sys-devel | |
parent | gui-apps/gnome-console: Version bump to 44_beta (diff) | |
download | gentoo-8244fd0ba178b04fff863097baf5c2ec2c849f78.tar.gz gentoo-8244fd0ba178b04fff863097baf5c2ec2c849f78.tar.bz2 gentoo-8244fd0ba178b04fff863097baf5c2ec2c849f78.zip |
sys-devel/llvm: Enable installing gtest targets in 17.0.0.9999
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/llvm/llvm-17.0.0.9999.ebuild | 15 |
1 files 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) |