cuda module: fully buy into new modules API

In commit 3340284805 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.
pull/8851/head
Eli Schwartz 4 years ago committed by Xavier Claessens
parent e987a88c19
commit c3f5c2e745
  1. 6
      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,

Loading…
Cancel
Save