make : fix missing -O3

same as https://github.com/ggerganov/llama.cpp/pull/8143
This commit is contained in:
Georgi Gerganov 2024-06-26 21:20:45 +03:00
parent dc8cc2dd6f
commit 0a55a70b9b
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -251,7 +251,10 @@ ifdef WHISPER_DEBUG
MK_CPPFLAGS += -D_GLIBCXX_ASSERTIONS
endif
else
MK_CPPFLAGS += -DNDEBUG
MK_CPPFLAGS += -DNDEBUG
MK_CFLAGS += -O3
MK_CXXFLAGS += -O3
MK_NVCCFLAGS += -O3
endif
ifdef WHISPER_SANITIZE_THREAD