Re: [PATCH 32/33] rust: kbuild: support global per-version flags

From: Tamir Duberstein

Date: Wed Apr 01 2026 - 19:14:55 EST


On Wed, 01 Apr 2026 13:45:39 +0200, Miguel Ojeda <ojeda@xxxxxxxxxx> 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@xxxxxxxxxx>