build: don't detect neon again when building on aarch64

it will try to add -mfpu=neon to cflags not available on aarch64 since
neon is mandatory there
This commit is contained in:
Jan Palus 2022-05-21 14:10:48 +02:00
parent 26f4493405
commit ca1186946d
No known key found for this signature in database
GPG Key ID: AF176E5122D88062

View File

@ -192,7 +192,7 @@ if ['x86', 'x86_64'].contains(host_machine.cpu_family())
endif
neon_opt = get_option('neon')
if neon_opt != 'no'
if neon_opt != 'no' and not have_neon
if neon_opt != 'runtime'
if cc.compiles('#include <arm_neon.h>', args : '-mfpu=neon')
arch_cflags += ['-mfpu=neon', '-DWEBRTC_HAS_NEON']