diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 09:08:26 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 86b2cf3d1da242e22e71e506159136dd40473d30 (patch) | |
| tree | 6da1a03c70954012dd20ac04b154b08a9707d82c /mesonbuild/compilers/c.py | |
| parent | b8d25da6e22f6d7d1e39f9b9bbc2299fc1ad090a (diff) | |
| download | meson-86b2cf3d1da242e22e71e506159136dd40473d30.tar.gz | |
compilers: Remove Environment parameter from Compiler.has_function
Diffstat (limited to 'mesonbuild/compilers/c.py')
| -rw-r--r-- | mesonbuild/compilers/c.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 8e084e62c..d82689446 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -340,15 +340,12 @@ class ElbrusCCompiler(ElbrusCompiler, CCompiler): # Elbrus C compiler does not have lchmod, but there is only linker warning, not compiler error. # So we should explicitly fail at this case. - def has_function(self, funcname: str, prefix: str, env: 'Environment', *, + def has_function(self, funcname: str, prefix: str, *, extra_args: T.Optional[T.List[str]] = None, dependencies: T.Optional[T.List['Dependency']] = None) -> T.Tuple[bool, bool]: if funcname == 'lchmod': return False, False - else: - return super().has_function(funcname, prefix, env, - extra_args=extra_args, - dependencies=dependencies) + return super().has_function(funcname, prefix, extra_args=extra_args, dependencies=dependencies) class IntelCCompiler(IntelGnuLikeCompiler, CCompiler): |
