diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-11-20 10:20:27 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-12-07 09:35:12 -0800 |
commit | fc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f (patch) | |
tree | 2564b9e98b3a1c0c9ceb5ccc3db87fa69fdb5165 /mesonbuild/mesonlib.py | |
parent | 4ae0cadb7f951691e2913a660a61d024d04b5485 (diff) | |
download | meson-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.py | 12 |
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) |