From a2eeb941f6724bead143c541b482807c0fdd34fa Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 3 Nov 2022 20:18:57 +0200 Subject: [PATCH] cmake : fix passing GGML_PERF compile option --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dbc476..295b55a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,7 @@ else() option(WHISPER_SUPPORT_OPENBLAS "whisper: support for OpenBLAS" OFF) endif() -option(WHISPER_PERF "whisper: enable perf timings" OFF) +option(WHISPER_PERF "whisper: enable perf timings" OFF) # sanitizers @@ -151,6 +151,10 @@ else() endif() endif() +if (WHISPER_PERF) + set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_PERF) +endif() + # # whisper - this is the main library of the project #