[PATCH v4 4/4] RISC-V: fix gcc + rust builds
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Sun Nov 23 17:21:08 PST 2025
On Mon, Nov 24, 2025 at 1:23 AM Asuna Yang <spriteovo at gmail.com> wrote:
>
> Commit 33549fcf37ec ("RISC-V: disallow gcc + rust builds") disabled GCC
> + Rust builds for RISC-V due to differences in extension handling
> compared to LLVM.
This should mention what we are doing, i.e. re-enabling the GCC + Rust
support again.
Also, I would recommend avoiding to say "fix" in the title, unless it
is actually a fix, but perhaps the RISC-V maintainers consider it a
fix.
> 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?
> Update the documentation, GCC + Rust builds for RISC-V are now
> supported.
"are now maintained" may be better to avoid confusing it with the
"Level of Support" in the table.
> Documentation/rust/arch-support.rst | 2 +-
> rust/Makefile | 3 ++-
> scripts/Makefile.rust | 1 +
In any case, for the Rust bits, this seems OK (I didn't test it, though), so:
Acked-by: Miguel Ojeda <ojeda at kernel.org>
(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.).
Thanks!
Cheers,
Miguel
More information about the linux-riscv
mailing list