diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-08 21:08:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-08 21:08:33 +0300 |
commit | aad21d26393326b61eefaef837aedb17e494f5ee (patch) | |
tree | 673663f68cd77f790cea2e11f1e48bdca0115f5e /run_unittests.py | |
parent | af820b77d88be0865169aa7f2f66a60f41675825 (diff) | |
parent | 44c54affda4526a90e20d457786fa6fc2d3cbe06 (diff) | |
download | meson-aad21d26393326b61eefaef837aedb17e494f5ee.zip meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.gz meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.bz2 |
Merge pull request #1567 from jon-turney/cygwin
Add Cygwin support
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py index 53abef7..1b24d08 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -24,11 +24,11 @@ from pathlib import PurePath import mesonbuild.compilers import mesonbuild.environment import mesonbuild.mesonlib -from mesonbuild.mesonlib import is_windows, is_osx +from mesonbuild.mesonlib import is_windows, is_osx, is_cygwin from mesonbuild.environment import detect_ninja, Environment from mesonbuild.dependencies import PkgConfigDependency, ExternalProgram -if is_windows(): +if is_windows() or is_cygwin(): exe_suffix = '.exe' else: exe_suffix = '' @@ -833,6 +833,8 @@ class AllPlatformTests(BasePlatformTests): self.assertEqual(cc.gcc_type, mesonbuild.compilers.GCC_OSX) elif is_windows(): self.assertEqual(cc.gcc_type, mesonbuild.compilers.GCC_MINGW) + elif is_cygwin(): + self.assertEqual(cc.gcc_type, mesonbuild.compilers.GCC_CYGWIN) else: self.assertEqual(cc.gcc_type, mesonbuild.compilers.GCC_STANDARD) if isinstance(cc, clang): |