Re: [PATCH] kbuild: refactor cc-option-yn, cc-disable-warning, rust-option-yn macros
From: Alice Ryhl
Date: Wed Oct 09 2024 - 08:02:54 EST
On Wed, Oct 9, 2024 at 12:28 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> cc-option-yn and cc-disable-warning duplicate the compile command seen
> a few lines above. These can be defined based on cc-option.
>
> I also refactored rustc-option-yn in the same way, although there are
> currently no users of it.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> ---
>
> This avoids applying similar fixes to rustc-option and rustc-option-yn.
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>