diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-11-10 14:24:08 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-11-10 14:24:35 -0800 |
commit | 11ece5dbf3ebfd594ad4070327302925f5f351e9 (patch) | |
tree | 87da1d2e1533b6629d35558724a6b96bea394a29 /run_unittests.py | |
parent | 71814049a120dad8cd5a84f6054a7d763ed39f08 (diff) | |
download | meson-11ece5dbf3ebfd594ad4070327302925f5f351e9.zip meson-11ece5dbf3ebfd594ad4070327302925f5f351e9.tar.gz meson-11ece5dbf3ebfd594ad4070327302925f5f351e9.tar.bz2 |
unittests: Don't try to set alternative linkers for apple-clang
Diffstat (limited to 'run_unittests.py')
-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 f0c2f65..c23756d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -7334,6 +7334,11 @@ c = ['{0}'] 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)) |