How to build iree for riscv ? #23456
-
|
I found that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@HanKuanChen can you answer and help update the doc? I think the files were touched by you recently. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
It is still here https://github.com/iree-org/iree/blob/main/build_tools/cmake/linux_riscv64.cmake. |
Beta Was this translation helpful? Give feedback.
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.