diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-04-04 11:39:09 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-04-06 22:47:15 +0100 |
commit | fd47ef3a274e85f4391808f7bbade2a807ab53df (patch) | |
tree | 1487bec8072ee67d6f4ae2d1ccf9979dfc3b13e4 /mesonbuild/build.py | |
parent | 5af98a5ee8e8065932e9ebcaa45dd6fd42a54bdf (diff) | |
download | meson-fd47ef3a274e85f4391808f7bbade2a807ab53df.zip meson-fd47ef3a274e85f4391808f7bbade2a807ab53df.tar.gz meson-fd47ef3a274e85f4391808f7bbade2a807ab53df.tar.bz2 |
Use '.exe' extension for executables for Cygwin
Use '.exe' extension for executables for Cygwin when building and installing
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 895cc7f..537c91b 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -997,7 +997,8 @@ class Executable(BuildTarget): self.prefix = '' if not hasattr(self, 'suffix'): # Executable for Windows or C#/Mono - if for_windows(is_cross, environment) or 'cs' in self.compilers: + if (for_windows(is_cross, environment) or + for_cygwin(is_cross, environment) or 'cs' in self.compilers): self.suffix = 'exe' else: self.suffix = '' |