]> www.infradead.org Git - users/hch/misc.git/commit
kbuild: rust: Define probing macros for rustc
authorMatthew Maurer <mmaurer@google.com>
Tue, 20 Aug 2024 19:48:56 +0000 (19:48 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 16 Sep 2024 16:04:37 +0000 (18:04 +0200)
commitc42297438aee70e2d391225de3d35ffeb2bdbaf9
tree9837a6c9ffb1d47ae2024f2052a16130ef5e26bd
parentcc1d98f9fe30467a2224184336b3166ef4adbc25
kbuild: rust: Define probing macros for rustc

Creates flag probe macro variants for `rustc`. These are helpful
because:

1. The kernel now supports a minimum `rustc` version rather than a
   single version.
2. `rustc` links against a range of LLVM revisions, occasionally even
   ones without an official release number. Since the availability of
   some Rust flags depends on which LLVM it has been linked against,
   probing is necessary.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Link: https://github.com/Rust-for-Linux/linux/pull/1087
Link: https://lore.kernel.org/r/20240820194910.187826-2-mmaurer@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/Kconfig.include
scripts/Makefile.compiler