[PATCH] RISC-V: Fix building rust when using GCC toolchain
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Thu Sep 26 09:29:28 PDT 2024
On Thu, Sep 26, 2024 at 6:21 PM Conor Dooley <conor at kernel.org> wrote:
>
> No. Things like clang + ld & gas.
> I don't care about out of tree modules ;)
Ah, other tools, not just the C compiler, I see -- that is why I
mentioned out-of-tree modules, because otherwise I was not sure how
you would get mix the C compiler itself, i.e. GCC and Clang.
> Yes, just for riscv. The logic in our Kconfig menu is currently something
> like
> select HAVE_RUST if RUSTC_SUPPORTS_RISCV
> so that would just become
> select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
If that is what you think it is best for RISC-V, then sure, up to you -- thanks!
Cheers,
Miguel
More information about the linux-riscv
mailing list