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.
This commit is contained in:
1 parent
c904f6d4aa
commit
7166a3cd39
2 files changed
+2
-3
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user