diff options
author | Olexa Bilaniuk <obilaniu@gmail.com> | 2021-02-16 17:01:24 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-02-20 15:38:08 +0530 |
commit | 8c29249157a35f0209ab76ddf2970bed04c92d43 (patch) | |
tree | 15cd2c7b5a1e33284a82a46c724aca8362de2302 | |
parent | 0c90d76b11a27fd96e7404d153d12b6009eb963f (diff) | |
download | meson-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-x | run_unittests.py | 2 |
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) |