diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2020-11-10 14:24:08 -0800 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-01-09 09:00:28 +0530 |
| commit | 3378e57504bd984ff6155bbb346bf1814458561e (patch) | |
| tree | 28f53485d3f0d73d41c8640566085a5d9dda941b | |
| parent | 50aee9c77b64e9d79b7035c9c53e6ff880122865 (diff) | |
unittests: Don't try to set alternative linkers for apple-clang
| -rwxr-xr-x | run_unittests.py | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |
