diff options
author | Eric Dodd <eric.e.dodd@gmail.com> | 2020-05-21 08:45:44 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-10 22:16:14 +0300 |
commit | 71d68a940bdb31f0d66448fa9bde9abf403b54f2 (patch) | |
tree | 2169c0bcb301296f17437ead7fb82e21a067d091 | |
parent | f6a842821b64653de042633e714af3c5a5326c29 (diff) | |
download | meson-71d68a940bdb31f0d66448fa9bde9abf403b54f2.zip meson-71d68a940bdb31f0d66448fa9bde9abf403b54f2.tar.gz meson-71d68a940bdb31f0d66448fa9bde9abf403b54f2.tar.bz2 |
Updated to resolve issue identifying SGI CPUs on IRIX systems
-rw-r--r-- | mesonbuild/envconfig.py | 6 | ||||
-rw-r--r-- | mesonbuild/environment.py | 3 | ||||
-rw-r--r-- | mesonbuild/mesonlib.py | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index b74be35..b0dde65 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -64,7 +64,7 @@ known_cpu_families = ( 'wasm32', 'wasm64', 'x86', - 'x86_64' + 'x86_64', ) # It would feel more natural to call this "64_BIT_CPU_FAMILES", but @@ -299,6 +299,10 @@ class MachineInfo: """ return self.system == 'gnu' + def is_irix(self) -> bool: + """Machine is IRIX?""" + return self.system.startswith('irix') + # Various prefixes and suffixes for import libraries, shared libraries, # static libraries, and executables. # Versioning is added to these names in the backends as-needed. diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index cb6ae7d..4feb44c 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -344,6 +344,9 @@ def detect_cpu_family(compilers: CompilersDict) -> str: trial = 'sparc64' elif trial in {'mipsel', 'mips64el'}: trial = trial.rstrip('el') + elif trial in {'ip30', 'ip35'}: + trial = 'mips64' + # 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 diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 2413cb1..a43d4c4 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -509,6 +509,8 @@ def is_netbsd() -> bool: def is_freebsd() -> bool: return platform.system().lower() == 'freebsd' +def is_irix() -> bool: + return platform.system().startswith('irix') def is_hurd() -> bool: return platform.system().lower() == 'gnu' @@ -733,7 +735,7 @@ def default_libdir() -> str: return 'lib/' + archpath except Exception: pass - if is_freebsd(): + if is_freebsd() or is_irix(): return 'lib' if os.path.isdir('/usr/lib64') and not os.path.islink('/usr/lib64'): return 'lib64' |