From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 08 03:04:36 2020 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Efraim Flashner Subject: Re: [bug#43679] [PATCH 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' symlinks. 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-Debbugs-Envelope-To: 43679 Cc: 43679@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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.