From 0614ec788d532d666b34abaf1846e75c22bf99c5 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Wed, 14 Jan 2015 16:51:36 +0000 Subject: [PATCH] Enhance the detection of SSE2-compatible targets Assuming that any target that doesn't have "arm" in its name is an i686 or x86_64 and thus SSE2-compatible is incorrect (counter examples: aarch64 or mips). Make the check as fool-proof as possible. --- makefile.cargo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/makefile.cargo b/makefile.cargo index 0b32992..ef6ab32 100644 --- a/makefile.cargo +++ b/makefile.cargo @@ -77,7 +77,13 @@ CXXFLAGS += \ USE_CLANG = $(shell $(CXX) --version|grep -c 'clang') -ifneq (arm,$(findstring arm,$(TARGET))) +ifeq (i686,$(findstring i686,$(TARGET))) + supports_sse = true +endif +ifeq (x86_64,$(findstring x86_64,$(TARGET))) + supports_sse = true +endif +ifeq (true,$(supports_sse)) AZURE_CPP_SRC += \ libazure/BlurSSE2.cpp \ libazure/FilterProcessingSSE2.cpp \