From 2b2abc0307ca8a771fce11c26db6c07304b98981 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 4 Dec 2018 19:05:38 +0100 Subject: [PATCH] build: correctly check for ppc64le Signed-off-by: Igor Gnatenko --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index df9043e03f..b34636e875 100644 --- a/meson.build +++ b/meson.build @@ -627,7 +627,7 @@ if with_gallium_st_nine endif if get_option('power8') != 'false' - if host_machine.cpu_family() == 'ppc64le' + if host_machine.cpu_family() == 'ppc64' and host_machine.endian() == 'little' if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.8') error('Altivec is not supported with gcc version < 4.8.') endif @@ -968,7 +968,7 @@ if with_asm with_asm_arch = 'sparc' pre_args += ['-DUSE_SPARC_ASM'] endif - elif host_machine.cpu_family() == 'ppc64le' + elif host_machine.cpu_family() == 'ppc64' and host_machine.endian() == 'little' if system_has_kms_drm with_asm_arch = 'ppc64le' pre_args += ['-DUSE_PPC64LE_ASM'] -- 2.20.0.rc2