]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: rust: re-run Kconfig if the version text changes
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 2 Sep 2024 16:55:29 +0000 (18:55 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 5 Sep 2024 20:44:34 +0000 (22:44 +0200)
commit5134a335cfe6ebdd2420e15b5f6c06915040aa51
treeeb5c1ad585cc3541ed6762829a8952b58af96901
parent6e74c6b5a42e6a7313fcd29e814f211b392a00f5
kbuild: rust: re-run Kconfig if the version text changes

Re-run Kconfig if we detect the Rust compiler has changed via the version
text, like it is done for C.

Unlike C, and unlike `RUSTC_VERSION`, the `RUSTC_VERSION_TEXT` is kept
under `depends on RUST`, since it should not be needed unless `RUST`
is enabled.

Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20240902165535.1101978-3-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Makefile
init/Kconfig