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 F2243158041 for ; Thu, 21 Mar 2024 02:24:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E548E29AE; Thu, 21 Mar 2024 02:24:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 2419FE29AE for ; Thu, 21 Mar 2024 02:24:33 +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 46B94340806 for ; Thu, 21 Mar 2024 02:24:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A03A21595 for ; Thu, 21 Mar 2024 02:24:30 +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: <1710987722.d7f3dfefc2ab978d5d38b50d1e061c4a530d85f8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rust/rust-1.76.0-r1.ebuild dev-lang/rust/rust-1.76.0.ebuild X-VCS-Directories: dev-lang/rust/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d7f3dfefc2ab978d5d38b50d1e061c4a530d85f8 X-VCS-Branch: master Date: Thu, 21 Mar 2024 02:24:30 +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: 65e80762-3d8a-4d74-a598-a349d699c239 X-Archives-Hash: 2d3511144649e749fbfd4b03f845271f commit: d7f3dfefc2ab978d5d38b50d1e061c4a530d85f8 Author: Randy Barlow electronsweatshop com> AuthorDate: Sun Mar 17 03:00:43 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 21 02:22:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7f3dfef dev-lang/rust: Disable LTO by default and use thin We've had a few issues with lto on, and it isn't on by default generally among Gentoo packages, so this commit flips it to be off by default. Additionally, in an upstream ticket[0] it was suggested to use thin LTO rather than fat LTO, so this commit makes that adjustment as well. [0] https://github.com/rust-lang/rust/issues/121124 [sam: Note that there's a risk of miscompilations with non-thin LTO, per the upstream bug(s).] Bug: https://bugs.gentoo.org/924301 Signed-off-by: Randy Barlow electronsweatshop.com> Closes: https://github.com/gentoo/gentoo/pull/35796 Signed-off-by: Sam James gentoo.org> dev-lang/rust/{rust-1.76.0.ebuild => rust-1.76.0-r1.ebuild} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-lang/rust/rust-1.76.0.ebuild b/dev-lang/rust/rust-1.76.0-r1.ebuild similarity index 99% rename from dev-lang/rust/rust-1.76.0.ebuild rename to dev-lang/rust/rust-1.76.0-r1.ebuild index 5c6cef79e27f..eb175488528c 100644 --- a/dev-lang/rust/rust-1.76.0.ebuild +++ b/dev-lang/rust/rust-1.76.0-r1.ebuild @@ -42,7 +42,7 @@ LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/(-)?} LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4" -IUSE="big-endian clippy cpu_flags_x86_sse2 debug dist doc llvm-libunwind +lto miri nightly parallel-compiler profiler rustfmt rust-analyzer rust-src system-bootstrap system-llvm test wasm ${ALL_LLVM_TARGETS[*]}" +IUSE="big-endian clippy cpu_flags_x86_sse2 debug dist doc llvm-libunwind lto miri nightly parallel-compiler profiler rustfmt rust-analyzer rust-src system-bootstrap system-llvm test wasm ${ALL_LLVM_TARGETS[*]}" # Please keep the LLVM dependency block separate. Since LLVM is slotted, # we need to *really* make sure we're not pulling more than one slot @@ -469,7 +469,8 @@ src_configure() { deny-warnings = $(usex wasm $(usex doc false true) true) backtrace-on-ice = true jemalloc = false - lto = "$(usex lto fat off)" + # See https://github.com/rust-lang/rust/issues/121124 + lto = "$(usex lto thin off)" [dist] src-tarball = false compression-formats = ["xz"]