diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-17 10:58:01 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 1cda616bcf6e5638f25c5f8cc689ac94fcf8b765 (patch) | |
| tree | d7aa45f7af92ded6c6d235edfcfc53050bcc7efb | |
| parent | 98e3ad7266a0237282145eaf948436bef8b1f0be (diff) | |
| download | meson-1cda616bcf6e5638f25c5f8cc689ac94fcf8b765.tar.gz | |
compilers: Make CudaCompiler.get_ccbin_args private
It's not used outside of the compiler.
| -rw-r--r-- | mesonbuild/compilers/cuda.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 4b3b03508..cf0fceca5 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -550,7 +550,7 @@ class CudaCompiler(Compiler): # Use the -ccbin option, if available, even during sanity checking. # Otherwise, on systems where CUDA does not support the default compiler, # NVCC becomes unusable. - flags += self.get_ccbin_args(None, '') + flags += self._get_ccbin_args(None, '') # If cross-compiling, we can't run the sanity check, only compile it. if self.is_cross and not self.environment.has_exe_wrapper(): @@ -649,7 +649,7 @@ class CudaCompiler(Compiler): return opts def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: - args = self.get_ccbin_args(target, subproject) + args = self._get_ccbin_args(target, subproject) try: host_compiler_args = self.host_compiler.get_option_compile_args(target, subproject) @@ -674,7 +674,7 @@ class CudaCompiler(Compiler): return self._to_host_flags(host_compiler_args) def get_option_link_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: - args = self.get_ccbin_args(target, subproject) + args = self._get_ccbin_args(target, subproject) return args + self._to_host_flags(self.host_compiler.get_option_link_args(target, subproject), Phase.LINKER) def get_soname_args(self, prefix: str, shlib_name: str, suffix: str, soversion: str, @@ -784,8 +784,8 @@ class CudaCompiler(Compiler): def get_dependency_link_args(self, dep: 'Dependency') -> T.List[str]: return self._to_host_flags(super().get_dependency_link_args(dep), Phase.LINKER) - def get_ccbin_args(self, target: 'T.Optional[BuildTarget]', - subproject: T.Optional[str] = None) -> T.List[str]: + def _get_ccbin_args(self, target: 'T.Optional[BuildTarget]', + subproject: T.Optional[str] = None) -> T.List[str]: key = self.form_compileropt_key('ccbindir').evolve(subproject=subproject) if target: ccbindir = self.environment.coredata.get_option_for_target(target, key) |
