(MacOS ARM) Set -DDWONT_WANT_ARM_OPTIMIZATIONS for now since this won't compile on Mac for now

This commit is contained in:
twinaphex 2021-02-16 23:05:50 +01:00
parent c01df07f3d
commit e6643f7815

View File

@ -133,6 +133,7 @@ ifneq ($(findstring Darwin,$(OS)),)
DARWINFLAGS=
ifeq ($(shell uname -p),arm)
DARWINFLAGS = -mmacosx-version-min=10.15 -stdlib=libc++ # macOS (Metal, ARM 64bit)
DARWINFLAGS += -DDONT_WANT_ARM_OPTIMIZATIONS
else ifeq ($(HAVE_METAL),1)
DARWINFLAGS = -mmacosx-version-min=10.13 -stdlib=libc++ # macOS (Metal, x86 64bit)
else ifeq ($(shell uname -p),powerpc)
@ -145,6 +146,7 @@ ifneq ($(findstring Darwin,$(OS)),)
# Build for a specific architecture when ARCH is defined as a switch
ifeq ($(ARCH),arm64)
DARWINFLAGS = -mmacosx-version-min=10.15 -stdlib=libc++ # macOS (Metal, ARM 64bit)
DARWINFLAGS += -DDONT_WANT_ARM_OPTIMIZATIONS
DARWINFLAGS += -arch arm
else ifeq ($(ARCH),x86_64)
ifeq ($(HAVE_METAL),1)