aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-10-16 09:42:59 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-11-13 09:00:35 -0800
commit6ce3812762405393d912ca8f222fa86cb2d6bed3 (patch)
tree2a9f6e73321e7f6a770c950f83891c1b12b99127 /run_unittests.py
parent86957cfc90161fa672043e6bcdd3ccb1de12436e (diff)
downloadmeson-6ce3812762405393d912ca8f222fa86cb2d6bed3.zip
meson-6ce3812762405393d912ca8f222fa86cb2d6bed3.tar.gz
meson-6ce3812762405393d912ca8f222fa86cb2d6bed3.tar.bz2
environment: Fix detection of rust compilers, more
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 0e8d62c..7f7df36 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -7360,8 +7360,9 @@ class LinuxlikeTests(BasePlatformTests):
self._check_ld('ld.lld', 'lld', 'c', 'ld.lld')
@skip_if_not_language('rust')
+ @skipIfNoExecutable('ld.gold') # need an additional check here because _check_ld checks for gcc
def test_ld_environment_variable_rust(self):
- self._check_ld('ld.gold', 'gold', 'rust', 'ld.gold')
+ self._check_ld('gcc', 'gcc -fuse-ld=gold', 'rust', 'ld.gold')
def test_ld_environment_variable_cpp(self):
self._check_ld('ld.gold', 'gold', 'cpp', 'ld.gold')