From 01f207f34793cfdcff2b3cfe4da4a4e0e0d42cf7 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 20 Feb 2017 07:53:18 +0530 Subject: [PATCH] unit tests: Don't try to test objc/c++ on Windows MSVC compiler doesn't support it obviously. --- run_unittests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_unittests.py b/run_unittests.py index 10aa8ac7c..f800d0390 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), [])