summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2020-12-11 08:13:49 -0500
committerArun Raghavan <arun@asymptotic.io>2020-12-11 08:16:04 -0500
commitb34c1d5746ea5017b9b32efbffc7fc6f9d944bb7 (patch)
tree16eaaf6f470661d56f7bbf0f80271892291f10d4
parent3f9907f93d3983033e176e95f5134a57900a7f6e (diff)
downloadwebrtc-audio-processing-b34c1d5746ea5017b9b32efbffc7fc6f9d944bb7.tar.gz
build: Fix ARM ISA detection
armv7 isn't a real cpu_family in meson, so drop that. The detection for __ARM_ARCH_ISA_ARM was also inverted. Fixes: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/6
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 96d84d7..606d40b 100644
--- a/meson.build
+++ b/meson.build
@@ -83,8 +83,8 @@ have_mips = false
have_mips64 = false
have_x86 = false
have_avx2 = false
-if ['arm', 'armv7'].contains(host_machine.cpu_family())
- if cc.compiles('''#ifdef __ARM_ARCH_ISA_ARM
+if host_machine.cpu_family() == 'arm'
+ if cc.compiles('''#ifndef __ARM_ARCH_ISA_ARM
#error no arm arch
#endif''')
have_arm = true