From 544686feb10b924587aa0059bbcc351988085131 Mon Sep 17 00:00:00 2001 From: Jack Huang <1205867620@qq.com> Date: Wed, 14 Jan 2026 22:11:58 +0800 Subject: [PATCH] Add RISC-V64 architecture support in Makefile (#948) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d98d73b..f9a2b15 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,11 @@ ifneq ($(filter ppc64%, $(shell uname -m)), ) OPTFLAGS = endif +# RISC-V64 doesn't support -march=native +ifeq ($(shell uname -m), riscv64) + OPTFLAGS = +endif + # For auto-vectorization: # - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html # - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html