diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-08 19:57:16 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-06-09 10:36:02 -0400 |
commit | c3f5c2e745c3467248a8b61b5346969c7682c711 (patch) | |
tree | e22ff2c85a4578dcec19a8d76e9cde1945f69858 | |
parent | e987a88c196e6d7026bdaedd53f284ea6a4e5720 (diff) | |
download | meson-c3f5c2e745c3467248a8b61b5346969c7682c711.zip meson-c3f5c2e745c3467248a8b61b5346969c7682c711.tar.gz meson-c3f5c2e745c3467248a8b61b5346969c7682c711.tar.bz2 |
cuda module: fully buy into new modules API
In commit 3340284805b96a4b9b62405f626020276341944c the new ModuleObject
API got further updated to hide self.interpreter; at the time, the CUDA
module got transferred over to the wrapper which does provide it.
But it works fine without self.interpreter, so let's just use the best
base class.
-rw-r--r-- | mesonbuild/modules/unstable_cuda.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/unstable_cuda.py b/mesonbuild/modules/unstable_cuda.py index a262503..af65af3 100644 --- a/mesonbuild/modules/unstable_cuda.py +++ b/mesonbuild/modules/unstable_cuda.py @@ -19,18 +19,18 @@ from ..mesonlib import version_compare from ..interpreter import CompilerHolder from ..compilers import CudaCompiler -from . import ExtensionModule +from . import ModuleObject from ..interpreterbase import ( flatten, permittedKwargs, noKwargs, InvalidArguments, FeatureNew ) -class CudaModule(ExtensionModule): +class CudaModule(ModuleObject): @FeatureNew('CUDA module', '0.50.0') def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + super().__init__() self.methods.update({ "min_driver_version": self.min_driver_version, "nvcc_arch_flags": self.nvcc_arch_flags, |