From 3378e57504bd984ff6155bbb346bf1814458561e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Nov 2020 14:24:08 -0800 Subject: unittests: Don't try to set alternative linkers for apple-clang --- run_unittests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_unittests.py b/run_unittests.py index acd2aed0c..c51429406 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -7294,6 +7294,11 @@ class LinuxlikeTests(BasePlatformTests): with mock.patch.dict(os.environ, {envvar: name}): env = get_fake_env() comp = getattr(env, 'detect_{}_compiler'.format(lang))(MachineChoice.HOST) + if isinstance(comp, (mesonbuild.compilers.AppleClangCCompiler, + mesonbuild.compilers.AppleClangCPPCompiler, + mesonbuild.compilers.AppleClangObjCCompiler, + mesonbuild.compilers.AppleClangObjCPPCompiler)): + raise unittest.SkipTest('AppleClang is currently only supported with ld64') if lang != 'rust' and comp.use_linker_args('bfd') == []: raise unittest.SkipTest( 'Compiler {} does not support using alternative linkers'.format(comp.id)) -- cgit v1.2.3