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 oDc+OmWEhF+2FAAA0tVLHw (envelope-from ) for ; Mon, 12 Oct 2020 16:29:25 +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 0JPyNWWEhF9kDQAAbx9fmQ (envelope-from ) for ; Mon, 12 Oct 2020 16:29:25 +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 537FC94060F for ; Mon, 12 Oct 2020 16:29:25 +0000 (UTC) Received: from localhost ([::1]:45174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kS0hP-0006Iq-EG for larch@yhetil.org; Mon, 12 Oct 2020 12:29:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS0h4-0006HX-VT for guix-patches@gnu.org; Mon, 12 Oct 2020 12:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kS0h4-00061H-MV for guix-patches@gnu.org; Mon, 12 Oct 2020 12:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kS0h4-0003Cx-Jv for guix-patches@gnu.org; Mon, 12 Oct 2020 12:29:02 -0400 Subject: bug#43679: [PATCH v2 0/5] Add '--with-c-toolchain' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 12 Oct 2020 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 43679 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43679-done@debbugs.gnu.org Mail-Followup-To: 43679@debbugs.gnu.org, ludovic.courtes@inria.fr, ludo@gnu.org Received: via spool by 43679-done@debbugs.gnu.org id=D43679.160252008512256 (code D ref 43679); Mon, 12 Oct 2020 16:29:02 +0000 Received: (at 43679-done) by debbugs.gnu.org; 12 Oct 2020 16:28:05 +0000 Received: from localhost ([127.0.0.1]:43778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kS0g8-0003Bc-UI for submit@debbugs.gnu.org; Mon, 12 Oct 2020 12:28:05 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:57660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kS0g7-0003B8-3P for 43679-done@debbugs.gnu.org; Mon, 12 Oct 2020 12:28:04 -0400 X-IronPort-AV: E=Sophos;i="5.77,367,1596492000"; d="scan'208";a="472218472" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 18:27:56 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87mu17yzfn.fsf@inria.fr> <20201009091231.26287-1-ludo@gnu.org> Date: Mon, 12 Oct 2020 18:27:55 +0200 In-Reply-To: <20201009091231.26287-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 9 Oct 2020 11:12:26 +0200") Message-ID: <871ri3pfxw.fsf@gnu.org> 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: tF4eFuFWarzL Hi! Ludovic Court=C3=A8s skribis: > This is v2 of this patch, with these changes: > > 1. =E2=80=98with-toolchain=E2=80=99 is replaced by =E2=80=98with-c-tool= chain=E2=80=99 everywhere, > with the understanding that it=E2=80=99s about the C/C++ toolchain > in practice. In the end I=E2=80=99m sympathetic with the argument > that C/C++ don=E2=80=99t have a monopoly on toolchains. ;-) > > 2. =E2=80=98--with-c-toolchain=3DPACKAGE=3DTOOLCHAIN=E2=80=99 rebuilds = not just > PACKAGE with TOOLCHAIN, but also everything above PACKAGE > with TOOLCHAIN (in v1, only PACKAGE was rebuilt with TOOLCHAIN > but everything above it had to be rebuilt anyway.) > > The main motivation here is to reduce the changes that we=E2=80=99re > introducing ABI incompatibilities that users would have to work > around by passing on =E2=80=98--with-c-toolchain=E2=80=99 for each p= ackage in > the chain. I think it also more closely matches user > expectations: when you see things are being rebuilt, you=E2=80=99re > likely to think that=E2=80=99s because they=E2=80=99re rebuilt with = the new > toolchain, not the default one. > > Feedback welcome! > > Ludo=E2=80=99. > > Ludovic Court=C3=A8s (5): > gnu: gcc-toolchain: Add 'GUIX_LOCPATH' to the search paths. > gnu: clang-toolchain: Add 'GUIX_LOCPATH' to the search paths. > gnu: clang-toolchain: Create 'cc' and 'c++' symlinks. > packages: Add 'package-with-c-toolchain'. > guix build: Add '--with-c-toolchain'. Pushed as a2ed00f79fd5bf69c6cca3fa7bdc62726bf848fa! Ludo=E2=80=99.