build: use cpu_family for arch checks
authorMatthew Waters <matthew@centricular.com>
Fri, 9 Oct 2020 01:25:21 +0000 (12:25 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 9 Oct 2020 06:12:30 +0000 (06:12 +0000)
e.g. on 32-bit arm, we may have armv6, armv7l, armv7hf, etc which all
generally have the same layouts.  cpu_family() groups all of these into
just 'arm' that the ABI check table is expecting.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/854>

meson.build

index 5d1d329..897d9ac 100644 (file)
@@ -130,7 +130,7 @@ host_defines = [
   [ 's390', 'HAVE_CPU_S390' ],
 ]
 foreach h : host_defines
-  if h.get(0) == host_machine.cpu()
+  if h.get(0) == host_machine.cpu_family()
     core_conf.set(h.get(1), 1)
   endif
 endforeach