From: Georgi Gerganov Date: Mon, 22 Jan 2024 12:51:42 +0000 (+0200) Subject: cmake : temporary remove VLA check (#1795) X-Git-Tag: upstream/1.7.4~1091 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=41026c1e4bc2b03fbb45e8d85744bdd959970f44;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cmake : temporary remove VLA check (#1795) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 567a58d8..bab6e7ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,7 +315,8 @@ if (WHISPER_ALL_WARNINGS) endif() if (NOT MSVC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=vla") + # TODO: temporary disabled until we figure out ggml-metal.m + #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=vla") #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-math-errno -ffinite-math-only -funsafe-math-optimizations") endif()