[ioquake3] 06/10: Enable compiler optimization on all macOS architectures

Simon McVittie smcv at debian.org
Sun Dec 17 18:29:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag debian/1.36+u20171216_dfsg-1
in repository ioquake3.

commit 7166a3cd3934ae743c4259768d44a90c4ab7923a
Author: Zack Middleton <zack at cloemail.com>
Date:   Sat Dec 16 12:51:56 2017 -0600

    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 2ed9af8..4aa9f51 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 c7419ec..997c9f4 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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list