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 /mesontest.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 'mesontest.py')
-rwxr-xr-x | mesontest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesontest.py b/mesontest.py index d626ba7..c4d1178 100755 --- a/mesontest.py +++ b/mesontest.py @@ -36,6 +36,10 @@ 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 determine_worker_count(): varname = 'MESON_TESTTHREADS' if varname in os.environ: @@ -150,7 +154,7 @@ def write_json_log(jsonlogfile, test_name, result): jsonlogfile.write(json.dumps(jresult) + '\n') 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 |