Skip to content

Commit

Permalink
Enable compiler optimization on all macOS architectures
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zturtleman committed Dec 16, 2017
1 parent c904f6d commit 7166a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -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),)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion make-macosx-ub.sh
Expand Up @@ -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

Expand Down

0 comments on commit 7166a3c

Please sign in to comment.