From: Andrew Huynh Date: Wed, 22 Mar 2023 20:30:40 +0000 (-0700) Subject: cmake : add a flag to disable F16C (#628) X-Git-Tag: upstream/1.7.4~1538 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=fc49c4442677e465c85883bc2cc055ad5884b97a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : add a flag to disable F16C (#628) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 476ceb8b..fbbb5209 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()