diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 09:40:14 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | e8c1d6a0b5f786fbd249440eed88918c51c10fff (patch) | |
| tree | f400ca43967065acfe497b1db3b7fdc3c718d9e9 /mesonbuild/compilers/cpp.py | |
| parent | 249c22df004e971bdc3d4121f526358e7552591e (diff) | |
| download | meson-e8c1d6a0b5f786fbd249440eed88918c51c10fff.tar.gz | |
compilers: Remove Environment parameter from Compiler.get_option_compile_args
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
| -rw-r--r-- | mesonbuild/compilers/cpp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 266bfde40..d7cd954d8 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -258,7 +258,7 @@ class ClangCPPCompiler(_StdCPPLibMixin, ClangCPPStds, ClangCompiler, CPPCompiler gnu_winlibs) return opts - def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: args: T.List[str] = [] rtti = self.get_compileropt_value('rtti', target, subproject) @@ -467,7 +467,7 @@ class GnuCPPCompiler(_StdCPPLibMixin, GnuCPPStds, GnuCompiler, CPPCompiler): return opts - def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: args: T.List[str] = [] rtti = self.get_compileropt_value('rtti', target, subproject) @@ -623,7 +623,7 @@ class ElbrusCPPCompiler(ElbrusCompiler, CPPCompiler): return super().has_function(funcname, prefix, extra_args=extra_args, dependencies=dependencies) # Elbrus C++ compiler does not support RTTI, so don't check for it. - def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: args: T.List[str] = [] eh = self.get_compileropt_value('eh', target, subproject) assert isinstance(eh, str) @@ -701,7 +701,7 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler): self._update_language_stds(opts, c_stds + g_stds) return opts - def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: args: T.List[str] = [] rtti = self.get_compileropt_value('rtti', target, subproject) @@ -796,7 +796,7 @@ class VisualStudioLikeCPPCompilerMixin(CompilerMixinBase): std_opt.set_versions(cpp_stds) return opts - def get_option_compile_args(self, target: 'BuildTarget', env: 'Environment', subproject: T.Optional[str] = None) -> T.List[str]: + def get_option_compile_args(self, target: 'BuildTarget', subproject: T.Optional[str] = None) -> T.List[str]: args: T.List[str] = [] eh = self.get_compileropt_value('eh', target, subproject) |
