ggerganov commited on
Commit
e670e4f
·
unverified ·
1 Parent(s): 2f9eebd

cmake : fix passing GGML_PERF compile option

Browse files
Files changed (1) hide show
  1. CMakeLists.txt +5 -1
CMakeLists.txt CHANGED
@@ -47,7 +47,7 @@ else()
47
  option(WHISPER_SUPPORT_OPENBLAS "whisper: support for OpenBLAS" OFF)
48
  endif()
49
 
50
- option(WHISPER_PERF "whisper: enable perf timings" OFF)
51
 
52
  # sanitizers
53
 
@@ -151,6 +151,10 @@ else()
151
  endif()
152
  endif()
153
 
 
 
 
 
154
  #
155
  # whisper - this is the main library of the project
156
  #
 
47
  option(WHISPER_SUPPORT_OPENBLAS "whisper: support for OpenBLAS" OFF)
48
  endif()
49
 
50
+ option(WHISPER_PERF "whisper: enable perf timings" OFF)
51
 
52
  # sanitizers
53
 
 
151
  endif()
152
  endif()
153
 
154
+ if (WHISPER_PERF)
155
+ set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_PERF)
156
+ endif()
157
+
158
  #
159
  # whisper - this is the main library of the project
160
  #