From 6c914be933d45537ac77b45ed6407e30d9decd3f Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Wed, 30 Oct 2024 03:01:34 +0300 Subject: [PATCH] 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 --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 52f738b..7b46c84 100644 --- a/meson.build +++ b/meson.build @@ -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']