diff --git a/CMakeLists.txt b/CMakeLists.txt index 476ceb8..fbbb520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,7 +172,9 @@ else() if(NOT WHISPER_NO_FMA) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfma") endif() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mf16c") + if(NOT WHISPER_NO_F16C) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mf16c") + endif() endif() endif() endif()