Re: [PATCH v4 4/4] RISC-V: fix gcc + rust builds

From: Asuna Yang

Date: Sun Nov 23 2025 - 21:05:43 EST


On 11/24/25 9:21 AM, Miguel Ojeda wrote:
Add `rust-bindgen-option` conditions for the availability of libclang to
the RISC-V extension Kconfig symbols that depend on the `cc-option`
function.
This is now in a different commit, right?
Sorry, I may not have made it clear. I mean all these changes.

+ depends on !RUST || !64BIT || $(rust-bindgen-option,-- -mabi=lp64 -march=...)
+ depends on !RUST || !32BIT || $(rust-bindgen-option,-- -mabi=ilp32 -march=...)


(By the way, I wouldn't mind if we started adding `MAINTAINERS`
entries on who is maintaining particular architectures for Rust,
especially if there is someone in particular involved with it etc.).
I had some contributions in rust-lang/rust repo for riscv64 (PR #131955, FWIW), and I'd like to be added as a Rust + RISC-V Linux maintainer if that's okay for you guys.

For the suggestions about commit messages, I will improve them in the next revision.

Thanks for your reviews!