From 619f3a7a8aa11340d4ecac9a52b49d31f3fd0ea2 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 15 Jun 2016 07:08:26 +0000 Subject: [PATCH] Makefile: Add a special set of default optimization options when building for the Haswell-specific x86_64h architecture designation. git-svn-id: https://svn.eduke32.com/eduke32@5776 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index c38342dfb..ee732ccb5 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -390,8 +390,13 @@ endif ifndef OPTOPT ifeq ($(findstring x86_64, $(IMPLICIT_ARCH)),x86_64) - ifeq ($(PLATFORM),DARWIN) - OPTOPT=-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 + ifeq ($(findstring x86_64h, $(IMPLICIT_ARCH)),x86_64h) + OPTOPT=-march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mpclmul -mavx -mrdrnd -mf16c -mfsgsbase -mavx2 -maes -mfma -mbmi -mbmi2 + # -mcrc32 -mmovbe + else + ifeq ($(PLATFORM),DARWIN) + OPTOPT=-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 + endif endif endif ifeq ($(findstring i386, $(IMPLICIT_ARCH)),i386)