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()
if (DEFINED HAVE_AVX)
if (NOT NO_AVX)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx")
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mavx -mfma")
endif()
endif()
if (DEFINED HAVE_AVX2)

View File

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