[PATCH 32/33] rust: kbuild: support global per-version flags
Tamir Duberstein
tamird at kernel.org
Wed Apr 1 15:59:04 PDT 2026
On Wed, 01 Apr 2026 13:45:39 +0200, Miguel Ojeda <ojeda at kernel.org> wrote:
> [...]
> defined after the `include/config/auto.conf` inclusion (where
> `CONFIG_RUSTC_VERSION` becomes available), and append it to
> `rust_common_flags`, `KBUILD_HOSTRUSTFLAGS` and `KBUILD_RUSTFLAGS`.
>
> An alternative is moving all those three down, but that would mean
> separating them from the other `KBUILD_*` variables.
My prefernece is avoiding duplication over grouping, but either choice
should be justified by a code comment that acknowledges the
duplication/inconsisntecy.
--
Tamir Duberstein <tamird at kernel.org>
More information about the linux-arm-kernel
mailing list