modify system.cmake to enable fma flag

This commit is contained in:
Qiyu8 2020-11-13 10:20:24 +08:00
parent e0dac6b53b
commit ae0b1dea19
2 changed files with 1 additions and 5 deletions

View File

@ -174,7 +174,7 @@ if (DEFINED TARGET)
endif() endif()
if (DEFINED HAVE_AVX) if (DEFINED HAVE_AVX)
if (NOT NO_AVX) if (NOT NO_AVX)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx") set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx -mfma")
endif() endif()
endif() endif()
if (DEFINED HAVE_AVX2) if (DEFINED HAVE_AVX2)

View File

@ -5,10 +5,6 @@ endif
TOPDIR = .. TOPDIR = ..
include $(TOPDIR)/Makefile.system include $(TOPDIR)/Makefile.system
ifdef HAVE_FMA3
CFLAGS += -mfma
endif
ifeq ($(ARCH), power) ifeq ($(ARCH), power)
ifeq ($(C_COMPILER), CLANG) ifeq ($(C_COMPILER), CLANG)
override CFLAGS += -fno-integrated-as override CFLAGS += -fno-integrated-as