aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorSimon Ney <simon.ney@kommunikator-gmbh.com>2019-05-12 03:36:36 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-05-13 02:42:56 +0300
commit81170a9cbed4106cbb8129a5991ad52451d29275 (patch)
tree8922462b4482f560dd77e6e1a166836eaa14c010 /mesonbuild/mesonlib.py
parent5ede0f5ef0ce5ec13e100e737be4ccbc66c3dc41 (diff)
downloadmeson-81170a9cbed4106cbb8129a5991ad52451d29275.zip
meson-81170a9cbed4106cbb8129a5991ad52451d29275.tar.gz
meson-81170a9cbed4106cbb8129a5991ad52451d29275.tar.bz2
This is the fork "sneyx1234/meson" of the current git "mesonbuild/meson" head to converge it to the solaris 11.4 platform based on the sparcv9 and i386 processor architecture.
The purpose is to complete the porting related to the fork "sneyx1234/ast" of "att/ast" the "AT&T kornshell".
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index f78fa35..07beb69 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -344,6 +344,9 @@ class PerMachine(typing.Generic[_T]):
}[machine]
setattr(self, key, val)
+def is_sunos() -> bool:
+ return platform.system().lower() == 'sunos'
+
def is_osx() -> bool:
return platform.system().lower() == 'darwin'