aboutsummaryrefslogtreecommitdiff
path: root/symbolextractor.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-25 23:09:54 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-25 23:09:54 +0300
commit9d559b2b39d4ba084ad479bfb3100b62c13c7d61 (patch)
tree842b1df6ddcb19125925b7794fd7ca22996a5b5f /symbolextractor.py
parentc19570654cf8d7c00d8b8d96bb8d3f3cf0e68d1e (diff)
downloadmeson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.zip
meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.gz
meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.bz2
More robust windows detection and more logs.
Diffstat (limited to 'symbolextractor.py')
-rwxr-xr-xsymbolextractor.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/symbolextractor.py b/symbolextractor.py
index b184cff..f2c709d 100755
--- a/symbolextractor.py
+++ b/symbolextractor.py
@@ -22,7 +22,8 @@
# This file is basically a reimplementation of
# http://cgit.freedesktop.org/libreoffice/core/commit/?id=3213cd54b76bc80a6f0516aac75a48ff3b2ad67c
-import sys, subprocess, platform
+import sys, subprocess
+import mesonlib
import argparse
parser = argparse.ArgumentParser()
@@ -84,9 +85,9 @@ def gen_symbols(libfilename, outfilename, cross_host):
# toolset but there are more important things
# to do.
dummy_syms(outfilename)
- elif platform.system() == 'Linux':
+ elif mesonlib.is_linux():
linux_syms(libfilename, outfilename)
- elif platform.system() == 'Darwin':
+ elif mesonlib.is_osx():
osx_syms(libfilename, outfilename)
else:
dummy_syms(outfilename)