summaryrefslogtreecommitdiff
path: root/mesonbuild/envconfig.py
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2023-07-03 22:56:25 +0900
committerDylan Baker <dylan@pnwbakers.com>2025-11-14 08:16:23 -0800
commit1e9c4426211a9de808e00187d2cc0212bc48a875 (patch)
treeab17578da1385cfe6703a2dea14ebadf7530c12a /mesonbuild/envconfig.py
parent7e5e1fb8bf0c6275c8e97e538393976901356bc7 (diff)
downloadmeson-1e9c4426211a9de808e00187d2cc0212bc48a875.tar.gz
Add functions to determine if OS/2
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r--mesonbuild/envconfig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 048cc8a6d..161ffff21 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -382,6 +382,12 @@ class MachineInfo(HoldableObject):
"""Machine is IRIX?"""
return self.system.startswith('irix')
+ def is_os2(self) -> bool:
+ """
+ Machine is OS/2?
+ """
+ return self.system == 'os/2'
+
# Various prefixes and suffixes for import libraries, shared libraries,
# static libraries, and executables.
# Versioning is added to these names in the backends as-needed.