这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmake/detect-arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@
#elif defined(__THW_RS6000)
#error archfound rs6000

// RISC-V
#elif defined(__riscv)
#if __riscv_xlen == 64
#error archfound riscv64
#elif __riscv_xlen == 32
#error archfound riscv32

// return 'unrecognized' if we do not know what architecture this is
#else
#error archfound unrecognized
Expand Down
3 changes: 3 additions & 0 deletions cmake/detect-arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ elseif("${ARCH}" MATCHES "parisc")
elseif("${ARCH}" MATCHES "rs6000")
set(BASEARCH "rs6000")
set(BASEARCH_RS6000_FOUND TRUE)
elseif("${ARCH}" MATCHES "riscv(32|64)")
set(BASEARCH "riscv")
set(BASEARCH_RISCV_FOUND TRUE)
else()
set(BASEARCH "x86")
set(BASEARCH_X86_FOUND TRUE)
Expand Down