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 C9E7815808B for ; Sun, 29 Sep 2024 11:22:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF395E2A28; Sun, 29 Sep 2024 11:22:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 BA4C2E2A28 for ; Sun, 29 Sep 2024 11:22:04 +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 F2001343221 for ; Sun, 29 Sep 2024 11:22:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6209F1F30 for ; Sun, 29 Sep 2024 11:22:02 +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: <1727608886.28fd52a103787d2bffa9136cb3bf5418beeb3ea9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 28fd52a103787d2bffa9136cb3bf5418beeb3ea9 X-VCS-Branch: master Date: Sun, 29 Sep 2024 11:22:02 +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: cae8ca1a-43b2-4a6a-89aa-96d55a119f94 X-Archives-Hash: a39e9346f99c43a50200a4d51b0a69d5 commit: 28fd52a103787d2bffa9136cb3bf5418beeb3ea9 Author: Sam James gentoo org> AuthorDate: Sun Sep 29 11:18:39 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 29 11:21:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28fd52a1 toolchain.eclass: don't set GDC if we couldn't find anything This avoids wrongly/unnecessarily setting GDC for < GCC 12. Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 759d871fde62..d68055f909fd 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1014,7 +1014,9 @@ toolchain_src_configure() { eend 1 done - export GDC="${BROOT}/usr/${CTARGET}/gcc-bin/${d_bootstrap}/gdc" + if [[ -n ${d_bootstrap} ]] ; then + export GDC="${BROOT}/usr/${CTARGET}/gcc-bin/${d_bootstrap}/gdc" + fi fi confgcc+=(