Skip to content

Commit

Permalink
Small patch to unittests to initialize CUDA compiler correctly.
Browse files Browse the repository at this point in the history
Suggested by Dylan Baker.
  • Loading branch information
obilaniu committed Feb 16, 2021
1 parent d1e945f commit 3410465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3769,7 +3769,7 @@ def test_templates(self):
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)
Expand Down

0 comments on commit 3410465

Please sign in to comment.