Browse Source

add sse3 compiler flag

tags/v0.3.11^2
Qiyu8 5 years ago
parent
commit
f32d34a015
3 changed files with 11 additions and 0 deletions
  1. +5
    -0
      Makefile.x86_64
  2. +3
    -0
      cmake/system.cmake
  3. +3
    -0
      kernel/Makefile

+ 5
- 0
Makefile.x86_64 View File

@@ -8,6 +8,11 @@ endif
endif
endif

ifdef HAVE_SSE3
CCOMMON_OPT += -msse3
FCOMMON_OPT += -msse3
endif

ifeq ($(CORE), SKYLAKEX)
ifndef DYNAMIC_ARCH
ifndef NO_AVX512


+ 3
- 0
cmake/system.cmake View File

@@ -70,6 +70,9 @@ if (DEFINED TARGET)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx2")
endif()
endif()
if (DEFINED HAVE_SSE3)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -msse3")
endif()
endif()

if (DEFINED TARGET)


+ 3
- 0
kernel/Makefile View File

@@ -5,6 +5,9 @@ endif
TOPDIR = ..
include $(TOPDIR)/Makefile.system

ifdef HAVE_SSE3
CFLAGS += -msse3
endif

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


Loading…
Cancel
Save