aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlexa Bilaniuk <obilaniu@gmail.com>2021-02-16 17:01:24 -0500
committerNirbheek Chauhan <nirbheek@centricular.com>2021-02-20 15:38:08 +0530
commit8c29249157a35f0209ab76ddf2970bed04c92d43 (patch)
tree15cd2c7b5a1e33284a82a46c724aca8362de2302
parent0c90d76b11a27fd96e7404d153d12b6009eb963f (diff)
downloadmeson-8c29249157a35f0209ab76ddf2970bed04c92d43.zip
meson-8c29249157a35f0209ab76ddf2970bed04c92d43.tar.gz
meson-8c29249157a35f0209ab76ddf2970bed04c92d43.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)