aboutsummaryrefslogtreecommitdiff
path: root/dependencies.py
diff options
context:
space:
mode:
authorGermán Diago Gómez <germandiago@gmail.com>2015-09-08 00:34:54 +0700
committerGermán Diago Gómez <germandiago@gmail.com>2015-09-08 00:34:54 +0700
commit89020de121d761a18d7ca0cc8d8fd082a0865bfd (patch)
tree3e417dbf5ab77d92daa818d854cdc041d24e6677 /dependencies.py
parentb3b5f507ee5da271fb92c4b6f13fc5267d432139 (diff)
downloadmeson-89020de121d761a18d7ca0cc8d8fd082a0865bfd.zip
meson-89020de121d761a18d7ca0cc8d8fd082a0865bfd.tar.gz
meson-89020de121d761a18d7ca0cc8d8fd082a0865bfd.tar.bz2
Replaced check for mac osx by mesonlib.is_osx()
Diffstat (limited to 'dependencies.py')
-rw-r--r--dependencies.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/dependencies.py b/dependencies.py
index ca94083..fc0f219 100644
--- a/dependencies.py
+++ b/dependencies.py
@@ -510,11 +510,10 @@ class BoostDependency(Dependency):
self.lib_modules_mt[modname] = fname
def detect_lib_modules_nix(self):
- import platform
libsuffix = None
- if platform.system() == 'Darwin':
+ if mesonlib.is_osx():
libsuffix = 'dylib'
- elif platform.system() == 'Linux':
+ else:
libsuffix = 'so'
globber = 'libboost_*.{}'.format(libsuffix)