summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-13 09:26:44 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commit15e054e9c3eb685e250f3a472644454375f6d5c0 (patch)
tree0eae9f19d0cc2bb5daf3f1aa6ac00ef942fe92e3 /mesonbuild/compilers/cpp.py
parent40b4151f33ea05f1f305f09831c24caa8a920a19 (diff)
downloadmeson-15e054e9c3eb685e250f3a472644454375f6d5c0.tar.gz
compilers: Remove Environment parameter from Compiler.has_header
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 27461449d..46c7bf5d8 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -183,7 +183,7 @@ class _StdCPPLibMixin(CompilerMixinBase):
def language_stdlib_provider(self, env: Environment) -> str:
# https://stackoverflow.com/a/31658120
- header = 'version' if self.has_header('version', '', env)[0] else 'ciso646'
+ header = 'version' if self.has_header('version', '')[0] else 'ciso646'
is_libcxx = self.has_header_symbol(header, '_LIBCPP_VERSION', '')[0]
lib = 'c++' if is_libcxx else 'stdc++'
return lib