Skip to content

Commit a721fcc

Browse files
authored
Fix riscv64 detection in system_check.cmake
1 parent 2edebc5 commit a721fcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/system_check.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "mips64.*")
4444
set(MIPS64 1)
4545
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64.*")
4646
set(LOONGARCH64 1)
47+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64.*")
48+
set(RISCV64 1)
4749
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
4850
if (NOT BINARY)
4951
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
@@ -107,7 +109,7 @@ else()
107109
endif ()
108110

109111
if (NOT BINARY)
110-
if (X86_64 OR ARM64 OR POWER OR MIPS64 OR LOONGARCH64)
112+
if (X86_64 OR ARM64 OR POWER OR MIPS64 OR LOONGARCH64 OR RISCV64)
111113
set(BINARY 64)
112114
else ()
113115
set(BINARY 32)

0 commit comments

Comments
 (0)