From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GMxBIE4Oe19DUwAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 12:15:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UID1G04Oe197RgAAbx9fmQ (envelope-from ) for ; Mon, 05 Oct 2020 12:15:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 13D0294042F for ; Mon, 5 Oct 2020 12:15:10 +0000 (UTC) Received: from localhost ([::1]:57874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPOX-0000AW-13 for larch@yhetil.org; Mon, 05 Oct 2020 08:15:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPPOQ-0000A9-5T for guix-patches@gnu.org; Mon, 05 Oct 2020 08:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPPOP-0003pJ-RP for guix-patches@gnu.org; Mon, 05 Oct 2020 08:15:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPPOP-0008QZ-Ng for guix-patches@gnu.org; Mon, 05 Oct 2020 08:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43679] [PATCH 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' symlinks. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Oct 2020 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43679 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43679@debbugs.gnu.org Received: via spool by 43679-submit@debbugs.gnu.org id=B43679.160190010032373 (code B ref 43679); Mon, 05 Oct 2020 12:15:01 +0000 Received: (at 43679) by debbugs.gnu.org; 5 Oct 2020 12:15:00 +0000 Received: from localhost ([127.0.0.1]:48195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPPOO-0008Q5-KU for submit@debbugs.gnu.org; Mon, 05 Oct 2020 08:15:00 -0400 Received: from flashner.co.il ([178.62.234.194]:58816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPPON-0008Ps-9o for 43679@debbugs.gnu.org; Mon, 05 Oct 2020 08:14:59 -0400 Received: from localhost (unknown [31.210.181.177]) by flashner.co.il (Postfix) with ESMTPSA id B9A2E40216; Mon, 5 Oct 2020 12:14:52 +0000 (UTC) Date: Mon, 5 Oct 2020 15:14:16 +0300 From: Efraim Flashner Message-ID: <20201005121416.GK2958@E5400> References: <20200928195648.30256-1-ludo@gnu.org> <20200928195648.30256-3-ludo@gnu.org> <20200929054212.GH1386@E5400> <874knh9fyp.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kkRamCq5m5VQq0L6" Content-Disposition: inline In-Reply-To: <874knh9fyp.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.69 X-TUID: nPtOtMGZHymB --kkRamCq5m5VQq0L6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 29, 2020 at 09:53:18AM +0200, Ludovic Court=C3=A8s wrote: > Hi Efraim, >=20 > Efraim Flashner skribis: >=20 > > On Mon, Sep 28, 2020 at 09:56:46PM +0200, Ludovic Court=C3=A8s wrote: > >> From: Ludovic Court=C3=A8s > >>=20 > >> * gnu/packages/llvm.scm (make-clang-toolchain)[arguments]: Create 'cc' > >> and 'c++' symlinks. > >> --- > >> gnu/packages/llvm.scm | 6 ++++++ > >> 1 file changed, 6 insertions(+) > >>=20 > >> diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm > >> index 4b42c4921a..361b39710b 100644 > >> --- a/gnu/packages/llvm.scm > >> +++ b/gnu/packages/llvm.scm > >> @@ -476,6 +476,12 @@ code analysis tools.") > >> (((names . directories) ...) > >> (union-build out directories))) > >> =20 > >> + ;; Create 'cc' and 'c++' so that one can use it = as a > >> + ;; drop-in replacement for the default tool chai= n and > >> + ;; have configure scripts find the compiler. > >> + (symlink "clang" (string-append out "/bin/cc")) > >> + (symlink "clang++" (string-append out "/bin/c++"= )) > >> + > >> (union-build (assoc-ref %outputs "debug") > >> (list (assoc-ref %build-inputs > >> "libc-debug"))) > >> --=20 > >> 2.28.0 > > > > Isn't this something we've turned down patches for in the past with gcc? >=20 > That is true, and, ahem, I even know a person who was against it. >=20 > But! I think it=E2=80=99s a bit different here: (1) we=E2=80=99re only c= hanging > =E2=80=98clang-toolchain=E2=80=99, not =E2=80=98clang=E2=80=99, (2) while= most build systems look for > =E2=80=98gcc=E2=80=99 in addition to =E2=80=98cc=E2=80=99, few of them lo= ok for =E2=80=98clang=E2=80=99. >=20 > =E2=80=98--with-toolchain=E2=80=99 is useful even if =E2=80=98clang-toolc= hain=E2=80=99 cannot be dropped > in (it allows you to try out different GCC versions, for instance), but > I think it=E2=80=99s more useful if one can use it to build their code wi= th a > different free tool chain. One use case that comes to mind is > portability testing for C/C++ developers. >=20 > WDYT? Do we want to have gcc-toolchain provide a cc binary then too? It seems like it would also help people who have a project they want to build by hand which has the compiler set as cc and they install the gcc-toolchain. >=20 > Thanks, > Ludo=E2=80=99. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --kkRamCq5m5VQq0L6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl97DhQACgkQQarn3Mo9 g1GmgQ//dJTSXtcjcB9dT32PRJiYgkwYjwFxIRuL+F1wFcv2EQFulsRowDzcOwIA 904YzfxZdYCOjyYExxKBxolKnqzU4jV6Xj/6MUoqCTO1s2ppVD1lOLrcdnjd70ty 0vt/7TRZmqigYVxbO/9wY7Z0td3rUDAfvvSMp9ABn1UFkf1nr3KaWr9+zQf6wsMq cluZoCquAgvb33Ng0PTALUdKco6bjqgV5UixKcXHLj1Wje2UeWCa1Nt0KhhawzrQ uovca5nrkffJc0xlRiAQ3Es1yEQd8mLzeov6IKrAL95raL7LDeA3epMLgpntfIhO eVVZHswwr0zyAFDdFD7NMPEAJWuLIEkHHrWe39skSpkn5Yy482JSYi7hIW/7wUYG NZbNwRmhwse9pgwJ7wqRHPKPoF7nvMZ4No561SRoaeo3ovvaleoLN1MnQMDqxJyj 6v1Ni5eV7iYP8g04k/HDOpjy7r8aMZhtosytK+hFN4egSvGNhLXgKZI7APXlzS5r 6JiXATGB7H9/RWGhxnxt9o6fNYULNkqOSzOUoQAgdMMYJkln051+LGTcqMmvj8LY 3JdVxCSGWgfjPTiw2DxClmlFVFtMGtTtDwvmgDMTD4D5kK0y1EjspenJ59lB/ca9 3k6tOmGv40e4rxQF5SkgVKrAgwlbGFdaXMuCUgEqYAvaRMDs+/8= =jIxx -----END PGP SIGNATURE----- --kkRamCq5m5VQq0L6--