Small patch to unittests to initialize CUDA compiler correctly.

Suggested by Dylan Baker.
pull/8355/head
Olexa Bilaniuk 4 years ago
parent d1e945f442
commit 3410465178
  1. 2
      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)

Loading…
Cancel
Save