modify system.cmake to enable fma flag
This commit is contained in:
parent
e0dac6b53b
commit
ae0b1dea19
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue