diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-20 07:53:18 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-21 01:36:08 +0530 |
commit | 01f207f34793cfdcff2b3cfe4da4a4e0e0d42cf7 (patch) | |
tree | 9e4fdf6bfc39d163e16dec473dad5233bd193581 /run_unittests.py | |
parent | 69e83d6aed89745bad540295e4a93ef37265e1b3 (diff) | |
download | meson-01f207f34793cfdcff2b3cfe4da4a4e0e0d42cf7.zip meson-01f207f34793cfdcff2b3cfe4da4a4e0e0d42cf7.tar.gz meson-01f207f34793cfdcff2b3cfe4da4a4e0e0d42cf7.tar.bz2 |
unit tests: Don't try to test objc/c++ on Windows
MSVC compiler doesn't support it obviously.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 10aa8ac..f800d03 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -737,7 +737,9 @@ class AllPlatformTests(BasePlatformTests): msvc = mesonbuild.compilers.VisualStudioCCompiler ar = mesonbuild.compilers.ArLinker lib = mesonbuild.compilers.VisualStudioLinker - langs = (('c', 'CC'), ('cpp', 'CXX'), ('objc', 'OBJC'), ('objcpp', 'OBJCXX')) + langs = [('c', 'CC'), ('cpp', 'CXX')] + if not is_windows(): + langs += [('objc', 'OBJC'), ('objcpp', 'OBJCXX')] testdir = os.path.join(self.unit_test_dir, '5 compiler detection') env = Environment(testdir, self.builddir, self.meson_command, get_fake_options(self.prefix), []) |