mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 21:22:14 +00:00
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:
parent
c904f6d4aa
commit
7166a3cd39
2 changed files with 2 additions and 3 deletions
3
Makefile
3
Makefile
|
@ -419,7 +419,7 @@ ifeq ($(PLATFORM),darwin)
|
||||||
LIBS = -framework Cocoa
|
LIBS = -framework Cocoa
|
||||||
CLIENT_LIBS=
|
CLIENT_LIBS=
|
||||||
RENDERER_LIBS=
|
RENDERER_LIBS=
|
||||||
OPTIMIZEVM=
|
OPTIMIZEVM = -O3
|
||||||
|
|
||||||
# Default minimum Mac OS X version
|
# Default minimum Mac OS X version
|
||||||
ifeq ($(MACOSX_VERSION_MIN),)
|
ifeq ($(MACOSX_VERSION_MIN),)
|
||||||
|
@ -435,7 +435,6 @@ ifeq ($(PLATFORM),darwin)
|
||||||
|
|
||||||
ifeq ($(ARCH),ppc)
|
ifeq ($(ARCH),ppc)
|
||||||
BASE_CFLAGS += -arch ppc -faltivec
|
BASE_CFLAGS += -arch ppc -faltivec
|
||||||
OPTIMIZEVM += -O3
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),ppc64)
|
ifeq ($(ARCH),ppc64)
|
||||||
BASE_CFLAGS += -arch ppc64 -faltivec
|
BASE_CFLAGS += -arch ppc64 -faltivec
|
||||||
|
|
|
@ -19,7 +19,7 @@ unset X86_64_MACOSX_VERSION_MIN
|
||||||
unset X86_SDK
|
unset X86_SDK
|
||||||
unset X86_CFLAGS
|
unset X86_CFLAGS
|
||||||
unset X86_MACOSX_VERSION_MIN
|
unset X86_MACOSX_VERSION_MIN
|
||||||
unset PPC_64_SDK
|
unset PPC_SDK
|
||||||
unset PPC_CFLAGS
|
unset PPC_CFLAGS
|
||||||
unset PPC_MACOSX_VERSION_MIN
|
unset PPC_MACOSX_VERSION_MIN
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue