Add -mfma for HAVE_FMA3 in the non-DYNAMIC_ARCH case as well

This commit is contained in:
Martin Kroeker 2020-11-13 09:16:34 +01:00 committed by GitHub
parent 02699226d0
commit ec4d77c47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ if (NOT DYNAMIC_ARCH)
if (HAVE_AVX)
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx")
endif ()
if (HAVE_FMA3)
set (CCOMMON_OPT "${CCOMMON_OPT} -mfma")
endif ()
if (HAVE_SSE)
set (CCOMMON_OPT "${CCOMMON_OPT} -msse")
endif ()