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 AHJ/Oy26fl/XWgAA0tVLHw (envelope-from ) for ; Thu, 08 Oct 2020 07:05:17 +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 cBZCNy26fl+FbQAAbx9fmQ (envelope-from ) for ; Thu, 08 Oct 2020 07:05:17 +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 0E053940105 for ; Thu, 8 Oct 2020 07:05:16 +0000 (UTC) Received: from localhost ([::1]:60914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQPzH-0003dE-Cb for larch@yhetil.org; Thu, 08 Oct 2020 03:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQPz4-0003c2-6t for guix-patches@gnu.org; Thu, 08 Oct 2020 03:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQPz3-0003D8-Tm for guix-patches@gnu.org; Thu, 08 Oct 2020 03:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQPz3-0002B6-Nu for guix-patches@gnu.org; Thu, 08 Oct 2020 03:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43679] [PATCH 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' symlinks. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Oct 2020 07:05: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: Efraim Flashner Cc: 43679@debbugs.gnu.org Received: via spool by 43679-submit@debbugs.gnu.org id=B43679.16021406768323 (code B ref 43679); Thu, 08 Oct 2020 07:05:01 +0000 Received: (at 43679) by debbugs.gnu.org; 8 Oct 2020 07:04:36 +0000 Received: from localhost ([127.0.0.1]:58554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQPyd-0002AB-VD for submit@debbugs.gnu.org; Thu, 08 Oct 2020 03:04:36 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQPyc-00029u-D0 for 43679@debbugs.gnu.org; Thu, 08 Oct 2020 03:04:34 -0400 X-IronPort-AV: E=Sophos;i="5.77,350,1596492000"; d="scan'208";a="361182838" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 09:04:26 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200928195648.30256-1-ludo@gnu.org> <20200928195648.30256-3-ludo@gnu.org> <20200929054212.GH1386@E5400> <874knh9fyp.fsf@gnu.org> <20201005121416.GK2958@E5400> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 08 Oct 2020 09:04:26 +0200 In-Reply-To: <20201005121416.GK2958@E5400> (Efraim Flashner's message of "Mon, 5 Oct 2020 15:14:16 +0300") Message-ID: <87h7r5ryf9.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -6.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: -1.01 X-TUID: 3pBqOJV26ACD Hi, Efraim Flashner skribis: > On Tue, Sep 29, 2020 at 09:53:18AM +0200, Ludovic Court=C3=A8s wrote: [...] >> >> + ;; Create 'cc' and 'c++' so that one can use it= as a >> >> + ;; drop-in replacement for the default tool cha= in 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 gc= c? >>=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 = changing >> =E2=80=98clang-toolchain=E2=80=99, not =E2=80=98clang=E2=80=99, (2) whil= e most build systems look for >> =E2=80=98gcc=E2=80=99 in addition to =E2=80=98cc=E2=80=99, few of them l= ook for =E2=80=98clang=E2=80=99. >>=20 >> =E2=80=98--with-toolchain=E2=80=99 is useful even if =E2=80=98clang-tool= chain=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 w= ith 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. I=E2=80=99m not enthusiastic (I think it=E2=80=99s good that build systems = and tools keep referring to =E2=80=98gcc=E2=80=99) but I guess I=E2=80=99ll have a mo= re difficult time arguing against it now=E2=80=A6 Ludo=E2=80=99.