From 575d9c81a6d3d0587f528f95d408a79492091edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Rognes?= Date: Tue, 13 Apr 2021 16:52:07 +0200 Subject: [PATCH] Update Makefile for Apple Silicon --- src/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index 30980f9..35a4f02 100644 --- a/src/Makefile +++ b/src/Makefile @@ -48,12 +48,13 @@ endif # Machine specific MACHINE = $(shell uname -m) ifeq ($(MACHINE), x86_64) - COMMON += -march=x86-64 -mtune=generic -std=c++11 + COMMON += -march=x86-64 -mtune=generic +else ifeq ($(MACHINE), arm64) + COMMON += -march=armv8-a+simd -mtune=generic else ifeq ($(MACHINE), aarch64) - COMMON += -march=armv8-a+simd -mtune=generic \ - -flax-vector-conversions -std=c++11 + COMMON += -march=armv8-a+simd -mtune=generic else ifeq ($(MACHINE), ppc64le) - COMMON += -mcpu=power8 -std=gnu++11 + COMMON += -mcpu=power8 endif # OS specific