From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 21A881582EF for ; Sun, 16 Feb 2025 09:37:55 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 072493430A5 for ; Sun, 16 Feb 2025 09:37:55 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0710B1102CD; Sun, 16 Feb 2025 09:37:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id EEE3B1102CD for ; Sun, 16 Feb 2025 09:37:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9620F3430A5 for ; Sun, 16 Feb 2025 09:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2DF0C170C for ; Sun, 16 Feb 2025 09:37:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739698645.7f6e54eb0a74dd2f273cbc1378d61fac8e675efa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/mold/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/mold/mold-2.36.0.ebuild sys-devel/mold/mold-9999.ebuild X-VCS-Directories: sys-devel/mold/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7f6e54eb0a74dd2f273cbc1378d61fac8e675efa X-VCS-Branch: master Date: Sun, 16 Feb 2025 09:37:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84a39efa-c36d-4faf-9635-0542cc36dc76 X-Archives-Hash: 734c90e9ea435a00242fd3186ea66aee commit: 7f6e54eb0a74dd2f273cbc1378d61fac8e675efa Author: Sam James gentoo org> AuthorDate: Sun Feb 16 09:36:14 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 16 09:37:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f6e54eb sys-devel/mold: conditionally build tests Not that it makes much difference here as it only affects a single extra target for a symlink, but that could change in future. Signed-off-by: Sam James gentoo.org> sys-devel/mold/mold-2.36.0.ebuild | 12 ++++++++++-- sys-devel/mold/mold-9999.ebuild | 14 +++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/sys-devel/mold/mold-2.36.0.ebuild b/sys-devel/mold/mold-2.36.0.ebuild index a58b5bfabc3f..1a42a8a55e22 100644 --- a/sys-devel/mold/mold-2.36.0.ebuild +++ b/sys-devel/mold/mold-2.36.0.ebuild @@ -21,7 +21,8 @@ fi # - siphash ( MIT CC0-1.0 ) LICENSE="MIT BSD-2 CC0-1.0" SLOT="0" -IUSE="debug" +IUSE="debug test" +RESTRICT="!test? ( test )" RDEPEND=" app-arch/zstd:= @@ -70,12 +71,19 @@ src_configure() { use debug || append-cppflags "-DNDEBUG" local mycmakeargs=( - -DMOLD_ENABLE_QEMU_TESTS=OFF + -DBUILD_TESTING=$(usex test) -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS. -DMOLD_USE_MIMALLOC=$(usex !kernel_Darwin) -DMOLD_USE_SYSTEM_MIMALLOC=ON -DMOLD_USE_SYSTEM_TBB=ON ) + + if ! use test ; then + mycmakeargs+=( + -DMOLD_ENABLE_QEMU_TESTS=OFF + ) + fi + cmake_src_configure } diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild index e0398e86fe4b..1a42a8a55e22 100644 --- a/sys-devel/mold/mold-9999.ebuild +++ b/sys-devel/mold/mold-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021-2024 Gentoo Authors +# Copyright 2021-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,8 @@ fi # - siphash ( MIT CC0-1.0 ) LICENSE="MIT BSD-2 CC0-1.0" SLOT="0" -IUSE="debug" +IUSE="debug test" +RESTRICT="!test? ( test )" RDEPEND=" app-arch/zstd:= @@ -70,12 +71,19 @@ src_configure() { use debug || append-cppflags "-DNDEBUG" local mycmakeargs=( - -DMOLD_ENABLE_QEMU_TESTS=OFF + -DBUILD_TESTING=$(usex test) -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS. -DMOLD_USE_MIMALLOC=$(usex !kernel_Darwin) -DMOLD_USE_SYSTEM_MIMALLOC=ON -DMOLD_USE_SYSTEM_TBB=ON ) + + if ! use test ; then + mycmakeargs+=( + -DMOLD_ENABLE_QEMU_TESTS=OFF + ) + fi + cmake_src_configure }