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 B37381581E7 for ; Fri, 26 Apr 2024 08:29:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BBA6E29FD; Fri, 26 Apr 2024 08:29:51 +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 5CB15E29F0 for ; Fri, 26 Apr 2024 08:29:50 +0000 (UTC) From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= To: Alfredo Tupone Cc: gentoo-dev@lists.gentoo.org, toolchain@gentoo.org Subject: [gentoo-dev] Re: [PATCH 2/3] To build ada we need a c++ compiler too In-Reply-To: <20240425154537.32502-2-tupone@gentoo.org> (Alfredo Tupone's message of "Thu, 25 Apr 2024 17:44:06 +0200") Organization: Gentoo References: <20240425154537.32502-1-tupone@gentoo.org> <20240425154537.32502-2-tupone@gentoo.org> User-Agent: mu4e 1.12.4; emacs 30.0.50 Date: Fri, 26 Apr 2024 10:29:43 +0200 Message-ID: <874jbomsqw.fsf@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-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: 49134fbc-d280-4800-b2d2-d3f1f20bd6a4 X-Archives-Hash: 11b4b1f177630a693c4843706837ab87 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Alfredo Tupone writes: > 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=3D\"${1}\" "${S}"/gcc/*/config-lang.in > /dev/null || re= turn 1 > [[ -z ${TOOLCHAIN_ALLOWED_LANGS} ]] && return 0 > has $1 ${TOOLCHAIN_ALLOWED_LANGS} > } >=20=20 > _tc_use_if_iuse() { > in_iuse $1 && use $1 > } >=20=20 > is_ada() { > gcc-lang-supported ada || return 1 > - _tc_use_if_iuse ada > + _tc_use_if_iuse cxx && _tc_use_if_iuse ada Is this redundant? Would gcc-lang-supported c++ (called through the ada support check) not suffice? > } >=20=20 > is_cxx() { > gcc-lang-supported 'c++' || return 1 > _tc_use_if_iuse cxx > } >=20=20 > is_d() { > gcc-lang-supported d || return 1 > _tc_use_if_iuse d > } >=20=20 > is_f77() { > gcc-lang-supported f77 || return 1 > _tc_use_if_iuse fortran =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIcEARYKAC8WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZitl9xEcYXJzZW5AZ2Vu dG9vLm9yZwAKCRBSwpQwHqLEkzbpAQCH0XOQdqtDMgOkFU2TfYthrGt9ZI/eFgWr 8Al9ww3HvAEA/Tfja7aEKreIGUXYeNru0UscElSgu9cxOZK6spMANAE= =jIg2 -----END PGP SIGNATURE----- --=-=-=--