aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-10 14:24:08 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-10 14:24:35 -0800
commit11ece5dbf3ebfd594ad4070327302925f5f351e9 (patch)
tree87da1d2e1533b6629d35558724a6b96bea394a29 /run_unittests.py
parent71814049a120dad8cd5a84f6054a7d763ed39f08 (diff)
downloadmeson-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-xrun_unittests.py5
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))