From 6a0de3aa3987272bde17b903eac49a6077416872 Mon Sep 17 00:00:00 2001 From: xctan Date: Sun, 26 Feb 2023 20:21:57 +0800 Subject: [PATCH] Add missing RISC-V architecture in arch.cmake RISC-V support exists in Makefile.system but is missing in arch.cmake. This patch adds riscv64 platform support to cmake building system just like https://github.com/xianyi/OpenBLAS/blob/039e27545f93fd54f9a04113f6883ee47a690004/Makefile.system#L830-L832 did. --- cmake/arch.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/arch.cmake b/cmake/arch.cmake index c1f0d5f62..8521f3988 100644 --- a/cmake/arch.cmake +++ b/cmake/arch.cmake @@ -135,3 +135,8 @@ if (ARM64) set(BINARY_DEFINED 1) endif () +if (${ARCH} STREQUAL "riscv64") + set(NO_BINARY_MODE 1) + set(BINARY_DEFINED 1) +endif () +