[PATCH v4 3/4] rust: add a Kconfig function to test for support of bindgen options

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Sun Nov 23 19:08:36 PST 2025


On Mon, Nov 24, 2025 at 3:42 AM Asuna Yang <spriteovo at gmail.com> wrote:
>
> I will separate them into two functions in the next revision,
> `bindgen-option` and `bindgen-backend-option` (or `bindgen-cc-option`?
> Which one do you prefer?).

If we don't need `bindgen-option` (the normal one I mean) so far,
perhaps we should skip it. On the other hand, `rustc-option-yn` is
there and is not used either (it was added for consistency). Up to the
Kbuild team, I guess.

As for the name, no strong preference. `bindgen-backend-option` sounds
good, but `bindgen-cc-option` is more consistent with `cc-option` and
probably easier to understand for people new to `bindgen`, and anyway
the flags we pass there wouldn't make sense if the backend is not a C
compiler.

Thanks!

Cheers,
Miguel



More information about the linux-riscv mailing list