From e3e2e4ca14f29bb6b78582092b91fa4567af4fc2 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 6 Jul 2018 16:53:49 +0100 Subject: Canonicalise 64-bit PowerPC CPU families to "ppc64" Instead of exposing the endianness in the CPU family, canonicalise the CPU family to just "ppc64" to match MIPS (which is also bi-endian). Part of the work for #3842. --- mesonbuild/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/environment.py') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 48d9fd4..f96e63f 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -84,7 +84,6 @@ known_cpu_families = ( 'parisc', 'ppc', 'ppc64', - 'ppc64le', 'sparc64', 'x86', 'x86_64' @@ -212,6 +211,8 @@ def detect_cpu_family(compilers): return 'x86' if trial.startswith('arm'): return 'arm' + if trial.startswith('ppc64'): + return 'ppc64' if trial in ('amd64', 'x64'): trial = 'x86_64' if trial == 'x86_64': -- cgit v1.1