Re: [PATCH V2] docs: rust: Clarify that 'rustup override' applies to build directory

From: Viresh Kumar
Date: Fri Dec 15 2023 - 06:24:47 EST


On 15-12-23, 11:14, Tiago Lam wrote:
> If ``rustup`` is being used, enter the checked out source code directory,
> or your build directory (if you're using the `O=` option to build the
> kernel), and run::

I thought people aren't required to enter the build directory now (but
just source code directory) and simply do:

make LLVM=1 O=<builddir> rustupoverride

>
> make LLVM=1 rustupoverride

Will this still work if we are in the build directory ?

> This will configure your current directory to use the correct version of
> ``rustc`` without affecting your default toolchain.
>
> If you are not using ``rustup``, fetch a standalone installer from:
>
> https://forge.rust-lang.org/infra/other-installation-methods.html#standalone

--
viresh