From ca619df429fdaaa0d18619c23744a7284148317d Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 3 Jun 2016 04:50:52 +0000 Subject: [PATCH] Makefile: Add extra optimization defaults for OS X builds since all Intel Macs are guaranteed certain features due to the time of their debut. git-svn-id: https://svn.eduke32.com/eduke32@5763 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index df99ab4d7..ff87c93a7 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -388,8 +388,17 @@ endif ifndef OPTOPT ifeq ($(findstring i386, $(IMPLICIT_ARCH)),i386) - OPTOPT=-march=pentium3 $(M_TUNE_GENERIC) -mmmx - # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN) + ifeq ($(PLATFORM),DARWIN) + OPTOPT=-march=nocona -mmmx -msse -msse2 -msse3 + else + OPTOPT=-march=pentium3 $(M_TUNE_GENERIC) -mmmx + # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN) + endif + endif + ifeq ($(findstring x86_64, $(IMPLICIT_ARCH)),x86_64) + ifeq ($(PLATFORM),DARWIN) + OPTOPT=-march=core2 -msse3 -mssse3 + endif endif endif