aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-10-08 12:25:51 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-10-09 19:49:57 +0300
commit65fc4149c5519f87fc8259bcbf31d923ac52162a (patch)
treefc650b6ccc2eddfb55a24b221af46252689215a2 /mesonbuild/environment.py
parent217036f2d9d7f90b47e6d9cad43f3144882a3b91 (diff)
downloadmeson-65fc4149c5519f87fc8259bcbf31d923ac52162a.zip
meson-65fc4149c5519f87fc8259bcbf31d923ac52162a.tar.gz
meson-65fc4149c5519f87fc8259bcbf31d923ac52162a.tar.bz2
environment: Detect sun4u and sun4v as sparc64
Solaris returns these values. Fixes #6006
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 03c6568..4aee3fe 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