The pffft.c file does not have runtime checks for NEON, and silently falls back to disabling it when the neon option is 'runtime'. Print a warning in this case. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
26 lines
595 B
Meson
26 lines
595 B
Meson
pffft_sources = [
|
|
'src/pffft.c',
|
|
]
|
|
|
|
pffft_cflags = [ '-D_GNU_SOURCE' ]
|
|
|
|
if neon_opt == 'runtime'
|
|
warning('pffft cannot check NEON support at runtime, will build without NEON')
|
|
endif
|
|
|
|
if not have_inline_sse or (have_arm and neon_opt != 'yes') or (have_mips and host_machine.endian() == 'little') or have_mips64
|
|
pffft_cflags += [ '-DPFFFT_SIMD_DISABLE' ]
|
|
endif
|
|
|
|
libpffft = static_library('libpffft',
|
|
pffft_sources,
|
|
dependencies: common_deps,
|
|
include_directories: webrtc_inc,
|
|
c_args : common_cflags + pffft_cflags
|
|
)
|
|
|
|
pffft_dep = declare_dependency(
|
|
link_with: libpffft
|
|
)
|
|
|