2023-12-18 05:52:35

by Viresh Kumar

[permalink] [raw]
Subject: [PATCH V3] docs: rust: Document the rustupoverride target

Document the newly added Make target: rustupoverride.

Signed-off-by: Viresh Kumar <[email protected]>
---
V2->V3:
- Remove the O= part and document rustupoverride target.

Documentation/rust/quick-start.rst | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst
index f382914f4191..c13e2e479e29 100644
--- a/Documentation/rust/quick-start.rst
+++ b/Documentation/rust/quick-start.rst
@@ -33,10 +33,9 @@ A particular version of the Rust compiler is required. Newer versions may or
may not work because, for the moment, the kernel depends on some unstable
Rust features.

-If ``rustup`` is being used, enter the checked out source code directory
-and run::
+If ``rustup`` is being used, run the following Make target::

- rustup override set $(scripts/min-tool-version.sh rustc)
+ make LLVM=1 rustupoverride

This will configure your working directory to use the correct version of
``rustc`` without affecting your default toolchain. If you are not using
--
2.31.1.272.g89b43f80a514



2023-12-18 06:48:07

by Tiago Lam

[permalink] [raw]
Subject: Re: [PATCH V3] docs: rust: Document the rustupoverride target

On 18/12/2023 05:52, Viresh Kumar wrote:
> Document the newly added Make target: rustupoverride.
>
> Signed-off-by: Viresh Kumar <[email protected]>

Reviewed-by: Tiago Lam <[email protected]>