add sse3 compiler flag
This commit is contained in:
parent
60e6c68e38
commit
f32d34a015
|
@ -8,6 +8,11 @@ endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef HAVE_SSE3
|
||||||
|
CCOMMON_OPT += -msse3
|
||||||
|
FCOMMON_OPT += -msse3
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CORE), SKYLAKEX)
|
ifeq ($(CORE), SKYLAKEX)
|
||||||
ifndef DYNAMIC_ARCH
|
ifndef DYNAMIC_ARCH
|
||||||
ifndef NO_AVX512
|
ifndef NO_AVX512
|
||||||
|
|
|
@ -70,6 +70,9 @@ if (DEFINED TARGET)
|
||||||
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
|
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if (DEFINED HAVE_SSE3)
|
||||||
|
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse3")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DEFINED TARGET)
|
if (DEFINED TARGET)
|
||||||
|
|
|
@ -5,6 +5,9 @@ endif
|
||||||
TOPDIR = ..
|
TOPDIR = ..
|
||||||
include $(TOPDIR)/Makefile.system
|
include $(TOPDIR)/Makefile.system
|
||||||
|
|
||||||
|
ifdef HAVE_SSE3
|
||||||
|
CFLAGS += -msse3
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(C_COMPILER), GCC)
|
ifeq ($(C_COMPILER), GCC)
|
||||||
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
|
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
|
||||||
|
|
Loading…
Reference in New Issue