Skip to content

Commit 544686f

Browse files
Add RISC-V64 architecture support in Makefile (#948)
1 parent 1a8ebb1 commit 544686f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ ifneq ($(filter ppc64%, $(shell uname -m)), )
2727
OPTFLAGS =
2828
endif
2929

30+
# RISC-V64 doesn't support -march=native
31+
ifeq ($(shell uname -m), riscv64)
32+
OPTFLAGS =
33+
endif
34+
3035
# For auto-vectorization:
3136
# - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html
3237
# - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html

0 commit comments

Comments
 (0)