From 3410465178b471d57d8591561a5c4f45015aa782 Mon Sep 17 00:00:00 2001 From: Olexa Bilaniuk Date: Tue, 16 Feb 2021 17:01:24 -0500 Subject: Small patch to unittests to initialize CUDA compiler correctly. Suggested by Dylan Baker. --- run_unittests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_unittests.py') 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) -- cgit v1.1