How to build iree for riscv ? #23456
Answered
by
HanKuanChen
FlintWangacc
asked this question in
Q&A
|
I found that |
Answered by
HanKuanChen
Feb 12, 2026
Replies: 2 comments
|
@HanKuanChen can you answer and help update the doc? I think the files were touched by you recently. Thanks! |
0 replies
|
It is still here https://github.com/iree-org/iree/blob/main/build_tools/cmake/linux_riscv64.cmake. |
0 replies
Answer selected by
FlintWangacc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is still here https://github.com/iree-org/iree/blob/main/build_tools/cmake/linux_riscv64.cmake.
You can use https://github.com/iree-org/iree/blob/main/build_tools/cmake/build_riscv.sh to help you build risc-v environment. For example,
IREE_READ_REMOTE_CCACHE=0 IREE_HOST_BIN_DIR="/path/to/iree-build/install/bin" RISCV_TOOLCHAIN_ROOT="/path/to/riscv/toolchain/clang/linux/RISCV" build_tools/cmake/build_riscv.shYou can get the latest toolchain here https://github.com/riscv-collab/riscv-gnu-toolchain/releases.