From 7166a3cd3934ae743c4259768d44a90c4ab7923a Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 16 Dec 2017 12:51:56 -0600 Subject: [PATCH] Enable compiler optimization on all macOS architectures It seems to improve framerate and still work on x86 and x86_64. I haven't tested ppc64 as I don't have the hardware. ppc64 isn't built into the universal bundle either. I noticed this because compiling opus warns it may be slow due to optimization being disabled. --- Makefile | 3 +-- make-macosx-ub.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2ed9af8e..4aa9f519 100644 --- a/Makefile +++ b/Makefile @@ -419,7 +419,7 @@ ifeq ($(PLATFORM),darwin) LIBS = -framework Cocoa CLIENT_LIBS= RENDERER_LIBS= - OPTIMIZEVM= + OPTIMIZEVM = -O3 # Default minimum Mac OS X version ifeq ($(MACOSX_VERSION_MIN),) @@ -435,7 +435,6 @@ ifeq ($(PLATFORM),darwin) ifeq ($(ARCH),ppc) BASE_CFLAGS += -arch ppc -faltivec - OPTIMIZEVM += -O3 endif ifeq ($(ARCH),ppc64) BASE_CFLAGS += -arch ppc64 -faltivec diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh index c7419ecb..997c9f42 100755 --- a/make-macosx-ub.sh +++ b/make-macosx-ub.sh @@ -19,7 +19,7 @@ unset X86_64_MACOSX_VERSION_MIN unset X86_SDK unset X86_CFLAGS unset X86_MACOSX_VERSION_MIN -unset PPC_64_SDK +unset PPC_SDK unset PPC_CFLAGS unset PPC_MACOSX_VERSION_MIN