llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.27k stars 11.68k forks source link

When is LLVM embedded toolchain for riscv supported? #97014

Open Johnvcx opened 3 months ago

Johnvcx commented 3 months ago

Multilib support

dtcxzyw commented 3 months ago

cc @wangpc-pp @topperc

llvmbot commented 3 months ago

@llvm/issue-subscribers-clang-driver

Author: XuQ (iiiyours)

Multilib support
llvmbot commented 3 months ago

@llvm/issue-subscribers-backend-risc-v

Author: XuQ (iiiyours)

Multilib support
topperc commented 3 months ago

@kito-cheng

wangpc-pp commented 3 months ago

I think the Clang driver supports multilibs currently (maybe you need to change the selection logic, or using yaml configuration files: https://www.youtube.com/watch?v=sEP4qlN_sAU, https://clang.llvm.org/docs/Multilib.html)

Is it because we can't specify --enable-multilib in https://github.com/riscv-collab/riscv-gnu-toolchain so you think Clang/LLVM doesn't support multilibs?

Note, that a combination of --enable-llvm and multilib configuration flags is not supported.

IIUC, this is not the limitation of Clang/LLVM, but riscv-gnu-toolchain's.