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:
parent
26f4493405
commit
ca1186946d
@ -192,7 +192,7 @@ if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
neon_opt = get_option('neon')
|
neon_opt = get_option('neon')
|
||||||
if neon_opt != 'no'
|
if neon_opt != 'no' and not have_neon
|
||||||
if neon_opt != 'runtime'
|
if neon_opt != 'runtime'
|
||||||
if cc.compiles('#include <arm_neon.h>', args : '-mfpu=neon')
|
if cc.compiles('#include <arm_neon.h>', args : '-mfpu=neon')
|
||||||
arch_cflags += ['-mfpu=neon', '-DWEBRTC_HAS_NEON']
|
arch_cflags += ['-mfpu=neon', '-DWEBRTC_HAS_NEON']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user