Skip to content

Commit ec4d77c

Browse files
authored
Add -mfma for HAVE_FMA3 in the non-DYNAMIC_ARCH case as well
1 parent 0269922 commit ec4d77c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/cc.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ if (NOT DYNAMIC_ARCH)
124124
if (HAVE_AVX)
125125
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx")
126126
endif ()
127+
if (HAVE_FMA3)
128+
set (CCOMMON_OPT "${CCOMMON_OPT} -mfma")
129+
endif ()
127130
if (HAVE_SSE)
128131
set (CCOMMON_OPT "${CCOMMON_OPT} -msse")
129132
endif ()

0 commit comments

Comments
 (0)