From 3a8a4ffcd46089e65d0cac8627f66888d8abf441 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Wed, 20 Jul 2022 13:17:12 -0400 Subject: [PATCH] If ARCH=M1, set ADDITIONAL_SETTINGS="-mcpu=apple-a14" Works nicely for clang and gcc --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 5192d01..4d1b3bf 100755 --- a/Makefile +++ b/Makefile @@ -65,6 +65,9 @@ endif ifeq "$(ARCHITECTURE)" "_S390X_" ADDITIONAL_SETTINGS=-march=z10 endif +ifeq "$(ARCH)" "M1" + ADDITIONAL_SETTINGS=-mcpu=apple-a14 +endif VALGRIND_CFLAGS= ifeq "$(DO_VALGRIND_CHECK)" "TRUE"