From 65fc4149c5519f87fc8259bcbf31d923ac52162a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 8 Oct 2019 12:25:51 -0700 Subject: [PATCH] environment: Detect sun4u and sun4v as sparc64 Solaris returns these values. Fixes #6006 --- mesonbuild/environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 03c65688f..4aee3fe90 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -330,6 +330,8 @@ def detect_cpu_family(compilers: CompilersDict) -> str: trial = 'ppc' elif trial in ('amd64', 'x64', 'i86pc'): trial = 'x86_64' + elif trial in {'sun4u', 'sun4v'}: + trial = 'sparc64' # On Linux (and maybe others) there can be any mixture of 32/64 bit code in # the kernel, Python, system, 32-bit chroot on 64-bit host, etc. The only