Skip to content

Commit f32d34a

Browse files
committed
add sse3 compiler flag
1 parent 60e6c68 commit f32d34a

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Makefile.x86_64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ endif
88
endif
99
endif
1010

11+
ifdef HAVE_SSE3
12+
CCOMMON_OPT += -msse3
13+
FCOMMON_OPT += -msse3
14+
endif
15+
1116
ifeq ($(CORE), SKYLAKEX)
1217
ifndef DYNAMIC_ARCH
1318
ifndef NO_AVX512

cmake/system.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ if (DEFINED TARGET)
7070
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
7171
endif()
7272
endif()
73+
if (DEFINED HAVE_SSE3)
74+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse3")
75+
endif()
7376
endif()
7477

7578
if (DEFINED TARGET)

kernel/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ endif
55
TOPDIR = ..
66
include $(TOPDIR)/Makefile.system
77

8+
ifdef HAVE_SSE3
9+
CFLAGS += -msse3
10+
endif
811

912
ifeq ($(C_COMPILER), GCC)
1013
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)

0 commit comments

Comments
 (0)