From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1541107-garchives=archives.gentoo.org@lists.gentoo.org>
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 CDB8815800A
	for <garchives@archives.gentoo.org>; Wed, 26 Jul 2023 02:53:17 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 641DFE092B;
	Wed, 26 Jul 2023 02:53:16 +0000 (UTC)
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 pigeon.gentoo.org (Postfix) with ESMTPS id 42C7DE092B
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 02:53:16 +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 5A825341584
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 02:53:15 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A0CAADD2
	for <gentoo-commits@lists.gentoo.org>; Wed, 26 Jul 2023 02:53:12 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1690339914.27c62fe574c16b0e6eaee5a207f093e9a7915680.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mono/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-lang/mono/mono-6.12.0.122.ebuild dev-lang/mono/mono-6.12.0.182.ebuild
X-VCS-Directories: dev-lang/mono/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 27c62fe574c16b0e6eaee5a207f093e9a7915680
X-VCS-Branch: master
Date: Wed, 26 Jul 2023 02:53:12 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1b1858c5-3c9a-4b22-b29e-41dc7c688c46
X-Archives-Hash: 38e6df9aef94b2e3d2445f0003bd2187

commit:     27c62fe574c16b0e6eaee5a207f093e9a7915680
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Thu Jul 13 17:38:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 02:51:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27c62fe5

dev-lang/mono: Filter LTO with LLD

Compilation fails with LLD and LTO with the following error:

ld.lld: error: boringssl/crypto/bn/CMakeFiles/bn.dir/convert.c.o <inline asm>:1:7: invalid operand for instruction
        divq $-8446744073709551616
             ^~~~~~~~~~~~~~~~~~~~~

ld.lld: error: boringssl/crypto/asn1/CMakeFiles/asn1.dir/a_object.c.o <inline asm>:1:7: invalid operand for instruction
        divq $-9223372036854775808
             ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31866
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/mono/mono-6.12.0.122.ebuild | 4 +++-
 dev-lang/mono/mono-6.12.0.182.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-lang/mono/mono-6.12.0.122.ebuild b/dev-lang/mono/mono-6.12.0.122.ebuild
index c644193115d7..db863dba7181 100644
--- a/dev-lang/mono/mono-6.12.0.122.ebuild
+++ b/dev-lang/mono/mono-6.12.0.122.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 CHECKREQS_DISK_BUILD="4500M"
-inherit autotools check-reqs linux-info mono-env pax-utils multilib-minimal
+inherit autotools check-reqs flag-o-matic linux-info mono-env pax-utils multilib-minimal toolchain-funcs
 
 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
 HOMEPAGE="https://mono-project.com"
@@ -85,6 +85,8 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+	tc-ld-is-lld && filter-lto
+
 	local myeconfargs=(
 		$(use_with xen xen_opt)
 		--without-ikvm-native

diff --git a/dev-lang/mono/mono-6.12.0.182.ebuild b/dev-lang/mono/mono-6.12.0.182.ebuild
index 20444696ffda..6d4584e910e1 100644
--- a/dev-lang/mono/mono-6.12.0.182.ebuild
+++ b/dev-lang/mono/mono-6.12.0.182.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 CHECKREQS_DISK_BUILD="4500M"
-inherit autotools check-reqs linux-info mono-env pax-utils multilib-minimal
+inherit autotools check-reqs flag-o-matic linux-info mono-env pax-utils multilib-minimal toolchain-funcs
 
 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
 HOMEPAGE="https://mono-project.com"
@@ -85,6 +85,8 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+	tc-ld-is-lld && filter-lto
+
 	local myeconfargs=(
 		$(use_with xen xen_opt)
 		--without-ikvm-native