summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8d02244..d59c71c 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -25,19 +25,13 @@ endif
ifeq ($(ISX86),1)
-GCC34_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (3.[4-9]|[4-9])")
GCC42_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (4.[2-9]|[5-9])")
INTEL_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\)")
GAS210_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2.[1-9][0-9]|[3-9])")
-ifneq ($(GCC34_OR_LATER) $(INTEL_COMPILER),0 0)
ifneq ($(GCC42_OR_LATER),0)
+ifneq ($(UNAME),Darwin)
CXXFLAGS += -march=native -mtune=native
-else
-# -msse2 is in GCC 3.3, but it causes internal compiler error on salsa.cpp,
-# so don't use it unless we're at GCC 3.4 or later
-# actually, we're not using SSE2 intrinsics anymore, and -msse2 causes invalid instructions on non-SSE2 CPUs
-# CXXFLAGS += -msse2
endif
endif