Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6967371rdb; Fri, 15 Dec 2023 13:28:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcx94fehgjKmIejPItRLqZGEAXtloWTTCwqIGoqPgy0JB5Y0s1ZuNdaekHGN0vU+qrtS7N X-Received: by 2002:a17:906:10c3:b0:a1e:74f2:9d88 with SMTP id v3-20020a17090610c300b00a1e74f29d88mr10623402ejv.20.1702675733577; Fri, 15 Dec 2023 13:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702675733; cv=none; d=google.com; s=arc-20160816; b=JiBUFAOVsCywNg4/57P9BKcn4hujF9LgLbRBIe3OCG6kW5bfoCLdte8sBTgk7AlJ34 yN6uRKbEoORYXDdVgQ9yxC9YeCJ3R5tyldaINIccUq9z/cMDN6Zx10fKCR5Oua0oZ4OC x5NapbDl7NskGEmC/vXqWj6UbwkXPz4KbHnVjCp3aesEwIyPlDcOCZePWrr7C5Ym//vy sFaN222RINMYEfVgZr7b7JrTG9l7LSvjRxF2PgKJJoEEjrnA/AUjZiKcV/Wt2FI/5ZOp WTha6lErZ6UyWBow2HK3aGH1CTDAt2Exgky75LbyToiTuMXd/IFT6NIhDsg+uNWXViHb uCeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=cC1bTSXVCMzouBImm4Lunm53BHd7q+29uIzARRshG/Q=; fh=xx3Osq6ien+SH3X4cGtrKG6zMpgqkJZVSinehoyPs3c=; b=YTJUjKYQhJHBxn9QGLisPY5LmBaSH/0qK5xqMMgVU9gtp2HL1djWvY/pWQYkclg6dA wxOabym141XCzEnPUCsXclrpDWQezCFsY/o99uRGXDL+JtPBbo+rN89wSSzwrMzen/Y4 1cGRWslgiJg6IWaI1NaoQiN8LJOSCZGY+Ud11qCBHL6BmT2wNneyeyBGbAN3y+sYr33j HFdtKhM3ZpR/RRa7hB8yjayLXA82YZm7aCiDumBuQRyT02g10GFrs+GT1NPcWC2Q9IhQ jgUuV+3MYHKc34Hxwslyv0j7WO/7kZydWAijWGvRiv+jn/qYyBoam/SNdGEngtakTFua mbJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bTLc9lOv; spf=pass (google.com: domain of linux-kernel+bounces-1669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f25-20020a170906085900b00a230cfaf44bsi1962308ejd.12.2023.12.15.13.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 13:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=bTLc9lOv; spf=pass (google.com: domain of linux-kernel+bounces-1669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 57BFE1F244B3 for ; Fri, 15 Dec 2023 21:28:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7839B482ED; Fri, 15 Dec 2023 21:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bTLc9lOv" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8A4847F71 for ; Fri, 15 Dec 2023 21:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-552e4a68de0so1019570a12.0 for ; Fri, 15 Dec 2023 13:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702675718; x=1703280518; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cC1bTSXVCMzouBImm4Lunm53BHd7q+29uIzARRshG/Q=; b=bTLc9lOvky3hnqhxyB3qjrvvSj24oJ76O9Fo+kz4prIC3/67Zr4hbepSfTtZEIYb8D CQKUltMB8EkpS6plbFJ+q2luSKHC398Yun0LQDsXDz5dTENqVvzLXfx2vz9mDMQtO5rf KUzX/KmZQDoCM3blBuw8dz4kpHPKL+2+lhvf2lgUTqX8/uqBeAKZUhlLKdGvDOyfBEMx cwfcd1KmOzTdWzVcUoVH15MorVl1u4ZfQfoipHMRBL0MzluTEdFhiGdIYu8Nm/5fN8dk 9lD4NxpADZHaU2sI7aQSVOrjHGzslfcma3kCM5keLM9VFEchS+ugTPURdgoTwWIa50wC AtLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702675718; x=1703280518; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cC1bTSXVCMzouBImm4Lunm53BHd7q+29uIzARRshG/Q=; b=WFiDADrMJw0bui6n239ftrFaee7w52grMpIA8s0+HtYpQjTwAfnKCcvfRYzEkDnT5D HicG2N4kI3AMW9S5nWlfF53D18XSJTqU4XIL4PmaNHHI70ui87Ay9uYh/raYUZGS7AXN LMGxdxEEOHq+GiHN6S6Kuy9e4bY2X8DrINWaAmz+K3jXwqt4ca2kqCdF7DsFgzxBw9Dd TcGIyyB/13s34wcvSL/Bf1dfJdtyZH8yAtgQECATDm0LZWY5beDiJh/wOzrFUvbfE3fN dfvmV7awwjkPqYSBgsURo07s3wrtrxeGP0+Sa9zwjRFhqbdFXO01r91+7HkVOPVT0bYr BxCA== X-Gm-Message-State: AOJu0YwQzdXe5m7Xmrtvz92FRzukjOLb7u6Qp10jfK0XK76TwQ85fBQG 1wv+zxejtKJDepd6D/sPFXvMHU6rGzsz2YuKj/Q9cA== X-Received: by 2002:a50:cd53:0:b0:551:cfab:5538 with SMTP id d19-20020a50cd53000000b00551cfab5538mr6411620edj.32.1702675718126; Fri, 15 Dec 2023 13:28:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215124751.175191-1-ojeda@kernel.org> In-Reply-To: <20231215124751.175191-1-ojeda@kernel.org> From: Justin Stitt Date: Fri, 15 Dec 2023 13:28:26 -0800 Message-ID: Subject: Re: [PATCH] docs: rust: remove `CC=clang` mentions To: Miguel Ojeda Cc: Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_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 , Nathan Chancellor , Nick Desaulniers , Bill Wendling , linux-doc@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Dec 15, 2023 at 4:48=E2=80=AFAM Miguel Ojeda wro= te: > > Nowadays all architectures except s390 recommend using `LLVM=3D1` instead= of > `CC=3Dclang`, and since commit a3c6bfba4429 ("Documentation/llvm: refresh > docs") the Kbuild LLVM documentation makes `LLVM=3D1` the way to go: > > We want to encourage the use of ``LLVM=3D1`` rather than just > ``CC=3Dclang``. Make that suggestion "above the fold" and "front and > center" in our docs. > > In particular, that commit removes the examples with `CC=3Dclang`. > > Thus do the same in the Rust Quick Start guide, i.e. remove the `CC=3Dcla= ng` > mentions, especially since the architectures that have had their Rust > support upstreamed (or soon to be upstreamed) are all `LLVM=3D1` ones > anyway. And perhaps by the time Rust is supported for s390 (or new > architectures), it may have moved to `LLVM=3D1` 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=3Dclang` [1= ]. > Yes! > Link: https://lore.kernel.org/rust-for-linux/6df6e8e5-8d5b-4d3d-91b5-bc0e= 90c424ea@nvidia.com/ [1] > Signed-off-by: Miguel Ojeda Reviewed-by: Justin Stitt > --- > Documentation/rust/quick-start.rst | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quic= k-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 c= ode > in the kernel, which means LLVM needs to be installed; like when the ker= nel > -is compiled with ``CC=3Dclang`` or ``LLVM=3D1``. > +is compiled with ``LLVM=3D1``. > > Linux distributions are likely to have a suitable one available, so it i= s > best to check that first. > @@ -229,10 +229,6 @@ at the moment. That is:: > > make LLVM=3D1 > > -For architectures that do not support a full LLVM toolchain, use:: > - > - make CC=3Dclang > - > Using GCC also works for some configurations, but it is very experimenta= l at > the moment. > > > base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 > -- > 2.43.0 > Thanks Justin