meson: Drop obsolete WEBRTC_DETECT_NEON macro

Upstream has dropped runtime checks for NEON instructions around 2016,
and the WEBRTC_DETECT_NEON macro is removed along with it. Disable NEON
when building with -Dneon=runtime and omit a warning instead.

Link: https://webrtc.googlesource.com/src/+/e305d956c0717a28ca88cd8547e5b310dfa74594
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
Alper Nebi Yasak 2024-10-28 17:49:10 +03:00 committed by Arun Raghavan
parent a1ccd6c700
commit b22ce018c8

View File

@ -167,11 +167,12 @@ if neon_opt != 'no' and not have_neon
arch_cflags += ['-mfpu=neon', '-DWEBRTC_HAS_NEON']
have_neon = true
endif
else
arch_cflags += ['-DWEBRTC_DETECT_NEON', '-mfpu=neon']
have_neon = true
endif
endif
if neon_opt == 'runtime'
warning('webrtc cannot check NEON support at runtime, will build without NEON')
have_neon = false
endif
common_cflags = [
'-DWEBRTC_LIBRARY_IMPL',