Skip to content

Commit

Permalink
Fixed sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmayoff committed Dec 18, 2023
1 parent e9eb21b commit 4e6b537
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions subprojects/packagefiles/whisper_cpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ threads = dependency('threads')
if cc.get_argument_syntax() == 'gcc'
add_project_arguments('-D_GNU_SOURCE', language: 'c')

if get_option('avx')
if get_option('avx').enabled()
add_project_arguments('-mavx', language: 'c')
endif

if get_option('avx2')
if get_option('avx2').enabled()
add_project_arguments('-mavx2', language: 'c')
endif

if get_option('fma')
if get_option('fma').enabled()
add_project_arguments('-mfma', language: 'c')
endif

if get_option('f16C')
if get_option('f16C').enabled()
add_project_arguments('-mf16c', language: 'c')
endif
elif cc.get_argument_syntax() == 'msvc'
add_project_arguments('/utf-8', language: 'c')

if get_option('avx')
if get_option('avx').enabled()
add_project_arguments('/arch:AVX', language: 'c')
endif

if get_option('avx2')
if get_option('avx2').enabled()
add_project_arguments('/arch:AVX2', language: 'c')
endif

Expand Down Expand Up @@ -61,6 +61,6 @@ whisper_cpp_dep = declare_dependency(
link_with: whisper_lib,
)

if get_option('build_examples')
if get_option('examples')
subdir('examples')
endif

0 comments on commit 4e6b537

Please sign in to comment.