]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: rust: add rustc-min-version support function
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 10 Feb 2025 16:42:45 +0000 (17:42 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:19:32 +0000 (21:19 +0900)
commitac954145e1ee3f72033161cbe4ac0b16b5354ae7
tree1521b1089ba6b334892364c2f3bc070044293ed5
parent144fced6852ba11c90560c996e986b4563f089af
kbuild: rust: add rustc-min-version support function

Introduce `rustc-min-version` support function that mimics
`{gcc,clang}-min-version` ones, following commit 88b61e3bff93
("Makefile.compiler: replace cc-ifversion with compiler-specific macros").

In addition, use it in the first use case we have in the kernel (which
was done independently to minimize the changes needed for the fix).

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Fiona Behrens <me@Kloenk.dev>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/kbuild/makefiles.rst
arch/arm64/Makefile
scripts/Makefile.compiler