diff --git a/hw/xfree86/common/meson.build b/hw/xfree86/common/meson.build index 5cdb832e8..97bbb8cff 100644 --- a/hw/xfree86/common/meson.build +++ b/hw/xfree86/common/meson.build @@ -71,7 +71,7 @@ endif if get_option('pciaccess') srcs_xorg_common += ['xf86pciBus.c', 'xf86VGAarbiter.c'] - if host_machine.cpu() == 'sparc' or host_machine.cpu() == 'sparc64' + if host_machine.cpu_family() in ['sparc', 'sparc64'] srcs_xorg_common += 'xf86sbusBus.c' endif endif diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build index c312162f3..ae6f2bb3d 100644 --- a/hw/xfree86/os-support/meson.build +++ b/hw/xfree86/os-support/meson.build @@ -16,7 +16,7 @@ os_c_args = [] if get_option('pciaccess') srcs_xorg_os_support += 'bus/Pci.c' - if host_machine.cpu() == 'sparc' or host_machine.cpu() == 'sparc64' + if host_machine.cpu_family() in ['sparc', 'sparc64'] srcs_xorg_os_support += 'bus/Sbus.c' install_data('bus/xf86Sbus.h', install_dir: xorgsdkdir) endif @@ -82,7 +82,7 @@ elif host_machine.system() == 'sunos' srcs_xorg_os_support += 'shared/agp_noop.c' endif - if host_machine.cpu_family() == 'sparc' + if host_machine.cpu_family() in ['sparc', 'sparc64'] srcs_xorg_os_support += 'solaris/solaris-sparcv8plus.S' elif host_machine.cpu_family() == 'x86_64' srcs_xorg_os_support += 'solaris/solaris-amd64.S'