diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 09:37:58 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 249c22df004e971bdc3d4121f526358e7552591e (patch) | |
| tree | 242700aa239812629553f938ee88008845de1bb6 /mesonbuild/compilers/cuda.py | |
| parent | 81bd5d3fe409dd46cad307fbb18703fda1261e38 (diff) | |
| download | meson-249c22df004e971bdc3d4121f526358e7552591e.tar.gz | |
compilers: Remove Environment parameter from Compiler.get_option_std_args
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
| -rw-r--r-- | mesonbuild/compilers/cuda.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 3978632ec..ad104b4d9 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -657,7 +657,7 @@ class CudaCompiler(Compiler): host_compiler_args = [] return args + self._to_host_flags(host_compiler_args) - def get_option_std_args(self, target: BuildTarget, env: Environment, subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_std_args(self, target: BuildTarget, subproject: T.Optional[str] = None) -> T.List[str]: # On Windows, the version of the C++ standard used by nvcc is dictated by # the combination of CUDA version and MSVC version; the --std= is thus ignored # and attempting to use it will result in a warning: https://stackoverflow.com/a/51272091/741027 @@ -668,7 +668,7 @@ class CudaCompiler(Compiler): return ['--std=' + std] try: - host_compiler_args = self.host_compiler.get_option_std_args(target, env, subproject) + host_compiler_args = self.host_compiler.get_option_std_args(target, subproject) except KeyError: host_compiler_args = [] return self._to_host_flags(host_compiler_args) |
