aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-04-08 21:08:33 +0300
committerGitHub <noreply@github.com>2017-04-08 21:08:33 +0300
commitaad21d26393326b61eefaef837aedb17e494f5ee (patch)
tree673663f68cd77f790cea2e11f1e48bdca0115f5e /mesonbuild/mesonlib.py
parentaf820b77d88be0865169aa7f2f66a60f41675825 (diff)
parent44c54affda4526a90e20d457786fa6fc2d3cbe06 (diff)
downloadmeson-aad21d26393326b61eefaef837aedb17e494f5ee.zip
meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.gz
meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.bz2
Merge pull request #1567 from jon-turney/cygwin
Add Cygwin support
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py4
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')