meson: Make -Dneon=no disable neon-specific code

When the neon build option is set to 'no', we should disable optimized
implementations that use NEON. Change have_neon to false in that case,
so that we skip the flags and skip building NEON-specific files.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
Alper Nebi Yasak 2024-10-30 03:01:34 +03:00 committed by Arun Raghavan
parent 8b0255991e
commit 6c914be933

View File

@ -173,6 +173,8 @@ endif
if neon_opt == 'runtime'
warning('webrtc cannot check NEON support at runtime, will build without NEON')
have_neon = false
elif neon_opt == 'no'
have_neon = false
endif
if have_neon
arch_cflags += ['-DWEBRTC_HAS_NEON']