aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-11-20 10:20:27 -0800
committerDylan Baker <dylan@pnwbakers.com>2017-12-07 09:35:12 -0800
commitfc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f (patch)
tree2564b9e98b3a1c0c9ceb5ccc3db87fa69fdb5165 /mesonbuild/mesonlib.py
parent4ae0cadb7f951691e2913a660a61d024d04b5485 (diff)
downloadmeson-fc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f.zip
meson-fc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f.tar.gz
meson-fc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f.tar.bz2
haiku: do not add pthread arguments
Haiku has pthreads, but they are part of the standard C library, and do not need either special compiler or linker flags.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 09b5d92..f10a138 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -292,6 +292,18 @@ def for_darwin(is_cross, env):
return env.cross_info.config['host_machine']['system'] == 'darwin'
return False
+def for_haiku(is_cross, env):
+ """
+ Host machine is Haiku?
+
+ Note: 'host' is the machine on which compiled binaries will run
+ """
+ if not is_cross:
+ return is_haiku()
+ elif env.cross_info.has_host():
+ return env.cross_info.config['host_machine']['system'] == 'haiku'
+ return False
+
def exe_exists(arglist):
try:
p = subprocess.Popen(arglist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)