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 /mesonbuild/mesonlib.py | |
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
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 4 |
1 files changed, 3 insertions, 1 deletions
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' |