From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 62E7D158083 for ; Wed, 18 Sep 2024 02:46:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C417E29A1; Wed, 18 Sep 2024 02:46:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7192CE29A1 for ; Wed, 18 Sep 2024 02:46:13 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7F0B34302F for ; Wed, 18 Sep 2024 02:46:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 111421E37 for ; Wed, 18 Sep 2024 02:46:11 +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: <1726627533.ea3cc27f4c69cb50afd5f6786e6c56d709f48c20.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.33.0-r1.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: ea3cc27f4c69cb50afd5f6786e6c56d709f48c20 X-VCS-Branch: master Date: Wed, 18 Sep 2024 02:46:11 +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: 641257ce-2f41-450c-bc33-5767075874db X-Archives-Hash: dc87b78259f33672b04445f0fdbc7fa9 commit: ea3cc27f4c69cb50afd5f6786e6c56d709f48c20 Author: Sam James gentoo org> AuthorDate: Wed Sep 18 02:16:17 2024 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 18 02:45:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea3cc27f sys-devel/mold: control assertions with USE=debug Still not really sure how we should handle this distro-wide but whatever. Anyway, the assertions being enabled is how we hit #938009. Bug: https://bugs.gentoo.org/938009 Signed-off-by: Sam James gentoo.org> sys-devel/mold/mold-2.33.0-r1.ebuild | 5 ++++- sys-devel/mold/mold-9999.ebuild | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sys-devel/mold/mold-2.33.0-r1.ebuild b/sys-devel/mold/mold-2.33.0-r1.ebuild index 257d0d263979..d9e220971d81 100644 --- a/sys-devel/mold/mold-2.33.0-r1.ebuild +++ b/sys-devel/mold/mold-2.33.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="A Modern Linker" HOMEPAGE="https://github.com/rui314/mold" @@ -20,6 +20,7 @@ fi # - siphash ( MIT CC0-1.0 ) LICENSE="MIT BSD-2 CC0-1.0" SLOT="0" +IUSE="debug" RDEPEND=" app-arch/zstd:= @@ -69,6 +70,8 @@ src_prepare() { } src_configure() { + use debug || append-cppflags "-DNDEBUG" + local mycmakeargs=( -DMOLD_ENABLE_QEMU_TESTS=OFF -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS. diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild index d13290655de3..53b3beaf330c 100644 --- a/sys-devel/mold/mold-9999.ebuild +++ b/sys-devel/mold/mold-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="A Modern Linker" HOMEPAGE="https://github.com/rui314/mold" @@ -12,7 +12,7 @@ if [[ ${PV} == 9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/rui314/mold/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~riscv ~sparc ~x86" fi # mold (MIT) @@ -20,6 +20,7 @@ fi # - siphash ( MIT CC0-1.0 ) LICENSE="MIT BSD-2 CC0-1.0" SLOT="0" +IUSE="debug" RDEPEND=" app-arch/zstd:= @@ -65,6 +66,8 @@ src_prepare() { } src_configure() { + use debug || append-cppflags "-DNDEBUG" + local mycmakeargs=( -DMOLD_ENABLE_QEMU_TESTS=OFF -DMOLD_LTO=OFF # Should be up to the user to decide this with CXXFLAGS.