unit tests: Don't try to test objc/c++ on Windows

MSVC compiler doesn't support it obviously.
pull/1408/head
Nirbheek Chauhan 8 years ago
parent 69e83d6aed
commit 01f207f347
  1. 4
      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), [])

Loading…
Cancel
Save