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 1CCCA1581E7 for ; Thu, 25 Apr 2024 15:46:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41D78E29EC; Thu, 25 Apr 2024 15:45:44 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41039E29D5 for ; Thu, 25 Apr 2024 15:45:43 +0000 (UTC) From: Alfredo Tupone To: gentoo-dev@lists.gentoo.org, toolchain@gentoo.org Subject: [gentoo-dev] [PATCH 2/3] To build ada we need a c++ compiler too Date: Thu, 25 Apr 2024 17:44:06 +0200 Message-ID: <20240425154537.32502-2-tupone@gentoo.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240425154537.32502-1-tupone@gentoo.org> References: <20240425154537.32502-1-tupone@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: a8709561-43d1-484b-895d-4253b99887a6 X-Archives-Hash: fd50087b6a5bbd4134808039d987154d Signed-off-by: Alfredo Tupone --- eclass/toolchain.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index fd820f60f45d..f8e06fa39884 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2495,31 +2495,31 @@ should_we_gcc_config() { # # Also add a hook so special ebuilds (kgcc64) can control which languages # exactly get enabled gcc-lang-supported() { grep ^language=\"${1}\" "${S}"/gcc/*/config-lang.in > /dev/null || return 1 [[ -z ${TOOLCHAIN_ALLOWED_LANGS} ]] && return 0 has $1 ${TOOLCHAIN_ALLOWED_LANGS} } _tc_use_if_iuse() { in_iuse $1 && use $1 } is_ada() { gcc-lang-supported ada || return 1 - _tc_use_if_iuse ada + _tc_use_if_iuse cxx && _tc_use_if_iuse ada } is_cxx() { gcc-lang-supported 'c++' || return 1 _tc_use_if_iuse cxx } is_d() { gcc-lang-supported d || return 1 _tc_use_if_iuse d } is_f77() { gcc-lang-supported f77 || return 1 _tc_use_if_iuse fortran -- 2.43.2