Re: [PATCH] kbuild: rust: add AutoFDO support
From: Nathan Chancellor
Date: Fri Mar 20 2026 - 17:18:42 EST
On Fri, Mar 20, 2026 at 06:47:05AM +0000, Alice Ryhl wrote:
> How about we just call them:
>
> * CFLAGS_AUTOFDO_CLANG
> * RUSTFLAGS_AUTOFDO
>
> then? For cflags, clarify that they are clang flags. For rustc, there is
> no such distinction to make (yet).
Yes, that seems reasonable to me (although CFLAGS_AUTOFDO_CLANG is
already the name so I assume you mean just keeping it as it is).
> Another option:
> * CFLAGS_AUTOFDO_CLANG
> * RUSTFLAGS_AUTOFDO_RUSTC
I don't see much of a reason to make this distinction until the rest of
the kernel's Rust code can be built with a different Rust compiler.
Cheers,
Nathan