diff options
author | Peter Harris <pharris@opentext.com> | 2020-08-10 19:03:09 -0400 |
---|---|---|
committer | Peter Harris <pharris@opentext.com> | 2020-08-12 19:56:01 -0400 |
commit | 45a12d28b9e6c9df454611e7286e06d91ec7617f (patch) | |
tree | 76922387932a677359844ed5389a407dad9d4dda /mesonbuild/mesonlib.py | |
parent | 435db359622ca6507a087b6bdcb2a977b3d3b8a4 (diff) | |
download | meson-45a12d28b9e6c9df454611e7286e06d91ec7617f.zip meson-45a12d28b9e6c9df454611e7286e06d91ec7617f.tar.gz meson-45a12d28b9e6c9df454611e7286e06d91ec7617f.tar.bz2 |
aix: fix cpu family detection
Like the BSDs, AIX does not return anything useful in platform.machine().
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 4b8cce8..5a3862c 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -530,6 +530,9 @@ def is_hurd() -> bool: def is_qnx() -> bool: return platform.system().lower() == 'qnx' +def is_aix() -> bool: + return platform.system().lower() == 'aix' + def exe_exists(arglist: T.List[str]) -> bool: try: if subprocess.run(arglist, timeout=10).returncode == 0: |