Thread (12 messages) 12 messages, 3 authors, 2025-09-05

Re: [PATCH 2/2] RISC-V: re-enable gcc + rust builds

From: Miguel Ojeda <hidden>
Date: 2025-09-03 23:27:16
Also in: linux-kbuild, linux-riscv, lkml, llvm, rust-for-linux

On Wed, Sep 3, 2025 at 9:08 PM Asuna Yang [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help