Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp60693rdb; Mon, 18 Dec 2023 08:56:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8vG5QqXM+yWacj3OZiIdYpg91LGeXKHJADq+UbV4Yw3D4ow4UlqeG8oi2lClG8zVX/4az X-Received: by 2002:a17:903:2b10:b0:1d3:4d31:6e3a with SMTP id mc16-20020a1709032b1000b001d34d316e3amr12646273plb.47.1702918573450; Mon, 18 Dec 2023 08:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702918573; cv=none; d=google.com; s=arc-20160816; b=j5F18l5fsruCECopOdpEFoLjD0nBMhIdKb1RlO5U5+YHHRQZ2ManoxpsyYWwFzNf5+ lxnfU8hfriItEUSggfiXHCFhHt9DlxtsStBHrHIVEfKqcb+57mBsTqSkiyDD1qnD8Qma LI6iTAPir1Tg/LpkXo5GWIGTnRKpvQDljl8rehVQ0fv845kWiHg4GHYbOfn2lZStZPrx Ylry0fVpmgas9Qzb1rP6q4/Wegqn0iM0NSFh2/41V8wSrhz00lcs47uQMEg2F3Mhg5zz CE5jacECN8ZqCr/QyUIpg1ZuQA2MNPt1Y7DDdfuAf6ho85PwzQeLy/lVuZ0ICH3stEM6 Jy4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YIXM1miEUXvrEBnSbqwEXm26svUezQ1GvA/TO/V6PuI=; fh=VZ6ejPszFNVhyuh9ti9qojq0Xhe3dbxGv6s0aB78QAs=; b=uekMgA4XryRCELLmyZlw574OCBfB3XsNyzUf7CpuWXNHgPyK7kOnSAbpsuvRIerSky ixOc6o1rR5oBkJIqxy1Eq28T+vjcDCmzhg7JHNQGj39gPJafKZhLkHRaFhPP3s+d4OfO wrHsh1u8+OtKCzlk6dewzvoznqlz/cmgWI2bfG1yIMALTf+klMDndZzgNFr3m20ywm14 92jA+AM/4Q+sBQPc4ljff226utOGJnB2DAk6yhuSGZ4M8nsCHHMzf+lWiB7ZvXz0sPtl TKWyh+QvNXLGdbOiIQm29MNZIrX9spZbQqRP8Z5P94V9npdE2MlHdJuq9qS+YiY5fU6v ZCxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YUa8SDEL; spf=pass (google.com: domain of linux-kernel+bounces-4103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j9-20020a17090276c900b001d055315494si17959756plt.540.2023.12.18.08.56.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:56:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YUa8SDEL; spf=pass (google.com: domain of linux-kernel+bounces-4103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4103-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8DEB9B221CE for ; Mon, 18 Dec 2023 16:56:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EDEB4FF87; Mon, 18 Dec 2023 16:55:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YUa8SDEL" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8298442392; Mon, 18 Dec 2023 16:55:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F56EC433CA; Mon, 18 Dec 2023 16:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702918556; bh=XxYFNWhdg6eNVhPoZXUc3S141TGv0s2xTcNREUNTq7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YUa8SDEL75yXavrxPAYBpehaZiKrcorHkBA1Wj8WefvK3li6SRC3XDFYV8QlYMW76 tvULE9CwNEEMCIV6xWZvLTW8tfqKlMrPClyWKdzVbtH8goOiTK0Zwc6y4PuYOAabpY o/EDHdfU4h0GyMMMzpO3Qxcx+tBfLtlasauNZIeTki4FRxoIyLTlpG19dhMX3SmPew gOTbIlydNrIMoe7742V2XU/zikhBTBNM1GVq4GaCG4eOhExNYD9M7grJuLO5BvRBP9 /flc7yzO1Pv1ru47bpeCszg73rfq0qcks2W58H1adz2cNgC07y73x3ApVDQQ2vsOVT oNMYBCsdW8WBg== Date: Mon, 18 Dec 2023 09:55:52 -0700 From: Nathan Chancellor To: Miguel Ojeda Cc: Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Jonathan Corbet , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-doc@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] docs: rust: remove `CC=clang` mentions Message-ID: <20231218165552.GA601326@dev-arch.thelio-3990X> References: <20231215124751.175191-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231215124751.175191-1-ojeda@kernel.org> On Fri, Dec 15, 2023 at 01:47:51PM +0100, Miguel Ojeda wrote: > Nowadays all architectures except s390 recommend using `LLVM=1` instead of > `CC=clang`, and since commit a3c6bfba4429 ("Documentation/llvm: refresh > docs") the Kbuild LLVM documentation makes `LLVM=1` the way to go: > > We want to encourage the use of ``LLVM=1`` rather than just > ``CC=clang``. Make that suggestion "above the fold" and "front and > center" in our docs. > > In particular, that commit removes the examples with `CC=clang`. > > Thus do the same in the Rust Quick Start guide, i.e. remove the `CC=clang` > mentions, especially since the architectures that have had their Rust > support upstreamed (or soon to be upstreamed) are all `LLVM=1` ones > anyway. And perhaps by the time Rust is supported for s390 (or new > architectures), it may have moved to `LLVM=1` anyway. Otherwise, > this can be added back if needed (or perhaps an extra link to > Documentation/kbuild/llvm.rst). > > This should also help avoiding potential confusion around `CC=clang` [1]. > > Link: https://lore.kernel.org/rust-for-linux/6df6e8e5-8d5b-4d3d-91b5-bc0e90c424ea@nvidia.com/ [1] > Signed-off-by: Miguel Ojeda Yes, the fact that no architecture that CONFIG_RUST supports requires CC=clang seems reason enough for this to be eliminated from the Rust documentation. Reviewed-by: Nathan Chancellor > --- > Documentation/rust/quick-start.rst | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst > index f382914f4191..75faa987079a 100644 > --- a/Documentation/rust/quick-start.rst > +++ b/Documentation/rust/quick-start.rst > @@ -76,7 +76,7 @@ libclang > > ``libclang`` (part of LLVM) is used by ``bindgen`` to understand the C code > in the kernel, which means LLVM needs to be installed; like when the kernel > -is compiled with ``CC=clang`` or ``LLVM=1``. > +is compiled with ``LLVM=1``. > > Linux distributions are likely to have a suitable one available, so it is > best to check that first. > @@ -229,10 +229,6 @@ at the moment. That is:: > > make LLVM=1 > > -For architectures that do not support a full LLVM toolchain, use:: > - > - make CC=clang > - > Using GCC also works for some configurations, but it is very experimental at > the moment. > > > base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 > -- > 2.43.0 >