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 DAA9B1581E7 for ; Fri, 26 Apr 2024 18:06:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36325E29E3; Fri, 26 Apr 2024 18:06:09 +0000 (UTC) Received: from tupone.it (tupone.it [95.216.99.101]) (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 D2E38E29CF for ; Fri, 26 Apr 2024 18:06:08 +0000 (UTC) Received: from alfredo.tupone.it (unknown [IPv6:2a01:e11:b:c630:2e0:4cff:fe69:49b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by tupone.it (Postfix) with ESMTPSA id 3B563840058; Fri, 26 Apr 2024 20:06:07 +0200 (CEST) Date: Fri, 26 Apr 2024 20:06:04 +0200 From: Alfredo Tupone To: Arsen =?UTF-8?B?QXJzZW5vdmnEhw==?= 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 Message-ID: <20240426200604.51bb9471@alfredo.tupone.it> In-Reply-To: <874jbomsqw.fsf@gentoo.org> References: <20240425154537.32502-1-tupone@gentoo.org> <20240425154537.32502-2-tupone@gentoo.org> <874jbomsqw.fsf@gentoo.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.41; x86_64-pc-linux-gnu) 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: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 69bf33a2-b75d-4d46-bd7c-99d9d01b4510 X-Archives-Hash: e3226f77d821320b62540e4d2d8d5a90 On Fri, 26 Apr 2024 10:29:43 +0200 Arsen Arsenovi=C4=87 wrote: > > is_ada() { > > gcc-lang-supported ada || return 1 > > - _tc_use_if_iuse ada > > + _tc_use_if_iuse cxx && _tc_use_if_iuse ada =20 >=20 > Is this redundant? Would gcc-lang-supported c++ (called through the > ada support check) not suffice? =46rom what I understand this test is checking that both USE=3Dcxx and USE=3Dada are enabled, and both cxx and ada are supported by gcc. If not, gcc is built without the ada compiler