diff options
author | Olexa Bilaniuk <obilaniu@gmail.com> | 2021-02-16 17:01:24 -0500 |
---|---|---|
committer | Olexa Bilaniuk <obilaniu@gmail.com> | 2021-02-16 17:01:24 -0500 |
commit | 3410465178b471d57d8591561a5c4f45015aa782 (patch) | |
tree | 037936fbe637fd1fe0b3df8d9a04091b289a6d5a | |
parent | d1e945f442e8601eea0014ebb27cd57f10d52eec (diff) | |
download | meson-3410465178b471d57d8591561a5c4f45015aa782.zip meson-3410465178b471d57d8591561a5c4f45015aa782.tar.gz meson-3410465178b471d57d8591561a5c4f45015aa782.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) |