Fixed compilation on Mac ARM - #22

This commit is contained in:
Andrew Kane
2022-01-14 01:18:33 -05:00
parent 17ec3f3852
commit 8735c4782a
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
## 0.2.2 (unreleased)
- Fixed compilation on Mac ARM
## 0.2.1 (2022-01-02)
- Fixed `operator is not unique` error

View File

@@ -11,6 +11,13 @@ REGRESS_OPTS = --inputdir=test
OPTFLAGS = -march=native
# Mac ARM doesn't support -march=native
ifeq ($(shell uname -s), Darwin)
ifeq ($(shell uname -p), arm)
OPTFLAGS =
endif
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