summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/meson_exe.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-04-04 11:39:09 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2017-04-06 22:47:15 +0100
commitfd47ef3a274e85f4391808f7bbade2a807ab53df (patch)
tree1487bec8072ee67d6f4ae2d1ccf9979dfc3b13e4 /mesonbuild/scripts/meson_exe.py
parent5af98a5ee8e8065932e9ebcaa45dd6fd42a54bdf (diff)
downloadmeson-fd47ef3a274e85f4391808f7bbade2a807ab53df.tar.gz
Use '.exe' extension for executables for Cygwin
Use '.exe' extension for executables for Cygwin when building and installing
Diffstat (limited to 'mesonbuild/scripts/meson_exe.py')
-rw-r--r--mesonbuild/scripts/meson_exe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py
index 5c5c31776..643e1af7b 100644
--- a/mesonbuild/scripts/meson_exe.py
+++ b/mesonbuild/scripts/meson_exe.py
@@ -29,8 +29,12 @@ def is_windows():
platname = platform.system().lower()
return platname == 'windows' or 'mingw' in platname
+def is_cygwin():
+ platname = platform.system().lower()
+ return 'cygwin' in platname
+
def run_with_mono(fname):
- if fname.endswith('.exe') and not is_windows():
+ if fname.endswith('.exe') and not (is_windows() or is_cygwin()):
return True
return False