From b22ce018c853216a020b589b02605f20099dccd4 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Mon, 28 Oct 2024 17:49:10 +0300 Subject: [PATCH] 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 --- meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 67cbd07..10e6f4e 100644 --- a/meson.build +++ b/meson.build @@ -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',