diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-25 23:09:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-25 23:09:54 +0300 |
commit | 9d559b2b39d4ba084ad479bfb3100b62c13c7d61 (patch) | |
tree | 842b1df6ddcb19125925b7794fd7ca22996a5b5f /symbolextractor.py | |
parent | c19570654cf8d7c00d8b8d96bb8d3f3cf0e68d1e (diff) | |
download | meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.zip meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.gz meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.bz2 |
More robust windows detection and more logs.
Diffstat (limited to 'symbolextractor.py')
-rwxr-xr-x | symbolextractor.py | 7 |
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) |