diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-02 22:17:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 22:17:23 +0200 |
commit | c814f1145bc521efd0a46b033751a6f844d24df5 (patch) | |
tree | 2dbfc2a9b19b8d20b115adec8f7697e4840266cf /mesonbuild/mesonlib.py | |
parent | ad54bc372694cf7fc6e173e41c56418651aac9f0 (diff) | |
parent | d5eeda56b3d22f95c9145d048362100196f6ccd2 (diff) | |
download | meson-c814f1145bc521efd0a46b033751a6f844d24df5.zip meson-c814f1145bc521efd0a46b033751a6f844d24df5.tar.gz meson-c814f1145bc521efd0a46b033751a6f844d24df5.tar.bz2 |
Merge pull request #2824 from bredelings/fix-boost
Fix boost on mac and linux: correctly search for boost and set -mt suffix when needed.
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 6bf31db..66bf98e 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -309,6 +309,18 @@ def for_cygwin(is_cross, env): return env.cross_info.config['host_machine']['system'] == 'cygwin' return False +def for_linux(is_cross, env): + """ + Host machine is linux? + + Note: 'host' is the machine on which compiled binaries will run + """ + if not is_cross: + return is_linux() + elif env.cross_info.has_host(): + return env.cross_info.config['host_machine']['system'] == 'linux' + return False + def for_darwin(is_cross, env): """ Host machine is Darwin (iOS/OS X)? |