diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-03-24 18:23:04 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-04-06 22:47:15 +0100 |
commit | cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66 (patch) | |
tree | d979d3a8289f1f5c55998591c5e9232f7a51f16d /mesonbuild/mesonlib.py | |
parent | c80ca384b22547147ad1515cc6527dacc4c72fe0 (diff) | |
download | meson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.zip meson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.tar.gz meson-cbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66.tar.bz2 |
Don't use -fPIC on Cygwin, either
Identify Cygwin-targetted gcc as sui generis (don't use -fPIC, but don't
link with standard Windows libraries, either)
Update tests appropriately
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index ba52219..291eb68 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -212,6 +212,10 @@ def is_windows(): platname = platform.system().lower() return platname == 'windows' or 'mingw' in platname +def is_cygwin(): + platname = platform.system().lower() + return platname.startswith('cygwin') + def is_debianlike(): return os.path.isfile('/etc/debian_version') |