diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 09:26:44 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 15e054e9c3eb685e250f3a472644454375f6d5c0 (patch) | |
| tree | 0eae9f19d0cc2bb5daf3f1aa6ac00ef942fe92e3 /mesonbuild/dependencies/misc.py | |
| parent | 40b4151f33ea05f1f305f09831c24caa8a920a19 (diff) | |
| download | meson-15e054e9c3eb685e250f3a472644454375f6d5c0.tar.gz | |
compilers: Remove Environment parameter from Compiler.has_header
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
| -rw-r--r-- | mesonbuild/dependencies/misc.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 413bbae33..a0301bef9 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -68,7 +68,7 @@ class AtomicSystemDependency(SystemDependency): super().__init__(name, env, kwargs) self.feature_since = ('1.7.0', "consider checking for `atomic_flag_clear` with and without `find_library('atomic')`") - h = self.clib_compiler.has_header('stdatomic.h', '', env) + h = self.clib_compiler.has_header('stdatomic.h', '') self.link_args = self.clib_compiler.find_library('atomic', [], self.libtype) if h[0] and self.link_args: @@ -89,7 +89,7 @@ class DlSystemDependency(SystemDependency): super().__init__(name, env, kwargs) self.feature_since = ('0.62.0', "consider checking for `dlopen` with and without `find_library('dl')`") - h = self.clib_compiler.has_header('dlfcn.h', '', env) + h = self.clib_compiler.has_header('dlfcn.h', '') self.link_args = self.clib_compiler.find_library('dl', [], self.libtype) if h[0] and self.link_args: @@ -157,7 +157,7 @@ class OpenMPDependency(SystemDependency): # Flang has omp_lib.h header_names = ('omp.h', 'omp_lib.h') for name in header_names: - if self.clib_compiler.has_header(name, '', self.env, dependencies=[self], disable_cache=True)[0]: + if self.clib_compiler.has_header(name, '', dependencies=[self], disable_cache=True)[0]: self.is_found = True break else: @@ -193,7 +193,7 @@ class BlocksDependency(SystemDependency): self.compile_args = ['-fblocks'] self.link_args = ['-lBlocksRuntime'] - if not self.clib_compiler.has_header('Block.h', '', environment, disable_cache=True) or \ + if not self.clib_compiler.has_header('Block.h', '', disable_cache=True) or \ not self.clib_compiler.find_library('BlocksRuntime', []): mlog.log(mlog.red('ERROR:'), 'BlocksRuntime not found.') return @@ -375,7 +375,7 @@ class CursesSystemDependency(SystemDependency): l = self.clib_compiler.find_library(lib, []) if l: for header in headers: - h = self.clib_compiler.has_header(header, '', env) + h = self.clib_compiler.has_header(header, '') if h[0]: self.is_found = True self.link_args = l @@ -421,7 +421,7 @@ class IconvSystemDependency(SystemDependency): super().__init__(name, env, kwargs) self.feature_since = ('0.60.0', "consider checking for `iconv_open` with and without find_library('iconv')") - h = self.clib_compiler.has_header('iconv.h', '', env) + h = self.clib_compiler.has_header('iconv.h', '') self.link_args = self.clib_compiler.find_library('iconv', [], self.libtype) if h[0] and self.link_args: @@ -443,7 +443,7 @@ class IntlSystemDependency(SystemDependency): super().__init__(name, env, kwargs) self.feature_since = ('0.59.0', "consider checking for `ngettext` with and without `find_library('intl')`") - h = self.clib_compiler.has_header('libintl.h', '', env) + h = self.clib_compiler.has_header('libintl.h', '') self.link_args = self.clib_compiler.find_library('intl', [], self.libtype) if h[0] and self.link_args: @@ -462,7 +462,7 @@ class OpensslSystemDependency(SystemDependency): 'method': DependencyMethods.SYSTEM, 'static': self.static, } - if not self.clib_compiler.has_header('openssl/ssl.h', '', env)[0]: + if not self.clib_compiler.has_header('openssl/ssl.h', '')[0]: return # openssl >= 3 only |
