[PATCH 2/2] RISC-V: re-enable gcc + rust builds
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Wed Sep 3 16:27:03 PDT 2025
On Wed, Sep 3, 2025 at 9:08 PM 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.
>
> Add a Kconfig non-visible symbol to ensure that all important RISC-V
> specific flags that will be used by GCC can be correctly recognized by
> Rust bindgen's libclang, otherwise config HAVE_RUST will not be
> selected.
I think the commit message should try to explain each the changes here
(or to split them).
e.g. it doesn't mention the other config symbols added, nor the extra
flag skipped, nor the `error` call.
Cc'ing the rust-for-linux list.
Thanks!
Cheers,
Miguel
More information about the linux-riscv
mailing list