From 78f8a286d06eb31f361d616098e59c0cfee2a911 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 30 Aug 2021 10:38:47 -0700 Subject: environment: add ppc -> ppc64 for aix to detect_cpu This seems like an oversight, that we'd replace ppc with ppc64 on AIX for the cpu_family, but not for the specific cpu. --- mesonbuild/environment.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/environment.py') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 5a9a587..3ad150d 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -387,6 +387,10 @@ def detect_cpu(compilers: CompilersDict) -> str: trial = 'mips' else: trial = 'mips64' + elif trial == 'ppc': + # AIX always returns powerpc, check here for 64-bit + if any_compiler_has_define(compilers, '__64BIT__'): + trial = 'ppc64' # Add more quirks here as bugs are reported. Keep in sync with # detect_cpu_family() above. -- cgit v1.1