Skip to content

Commit d341a0f

Browse files
authored
Merge pull request #2989 from martin-frbg/cmake-fma
Fix missing -mfma compiler flag in cmake builds without DYNAMIC_ARCH
2 parents ff16329 + ec4d77c commit d341a0f

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)