aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlexa Bilaniuk <obilaniu@gmail.com>2021-02-16 17:01:24 -0500
committerOlexa Bilaniuk <obilaniu@gmail.com>2021-02-16 17:01:24 -0500
commit3410465178b471d57d8591561a5c4f45015aa782 (patch)
tree037936fbe637fd1fe0b3df8d9a04091b289a6d5a
parentd1e945f442e8601eea0014ebb27cd57f10d52eec (diff)
downloadmeson-3410465178b471d57d8591561a5c4f45015aa782.zip
meson-3410465178b471d57d8591561a5c4f45015aa782.tar.gz
meson-3410465178b471d57d8591561a5c4f45015aa782.tar.bz2
Small patch to unittests to initialize CUDA compiler correctly.
Suggested by Dylan Baker.
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 8083342..0bd6d4b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3769,7 +3769,7 @@ class AllPlatformTests(BasePlatformTests):
env = get_fake_env()
for l in ['cpp', 'cs', 'd', 'java', 'cuda', 'fortran', 'objc', 'objcpp', 'rust']:
try:
- comp = getattr(env, f'detect_{l}_compiler')(MachineChoice.HOST)
+ comp = env.detect_compiler_for(l, MachineChoice.HOST)
with tempfile.TemporaryDirectory() as d:
comp.sanity_check(d, env)
langs.append(l)