Add RISC-V64 architecture support in Makefile (#948)

This commit is contained in:
Jack Huang
2026-01-14 22:11:58 +08:00
committed by GitHub
parent 1a8ebb1129
commit 544686feb1

View File

@@ -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