Re: [PATCH] kbuild: rust: add `CONFIG_RUSTC_LLVM_VERSION`

From: Miguel Ojeda
Date: Mon Oct 14 2024 - 18:00:41 EST


On Fri, Oct 11, 2024 at 1:41 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> Each version of Rust supports a range of LLVM versions. There are cases where
> we want to gate a config on the LLVM version instead of the Rust version.
> Normalized cfi integer tags are one example [1].
>
> The invocation of rustc-version is being moved from init/Kconfig to
> scripts/Kconfig.include for consistency with cc-version.
>
> Link: https://lore.kernel.org/all/20240925-cfi-norm-kasan-fix-v1-1-0328985cdf33@xxxxxxxxxx/ [1]
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>

Applied to `rust-fixes` -- thanks everyone!

[ Added missing `-llvm` to the Usage documentation. - Miguel ]

Cheers,
Miguel