summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/python.py
diff options
context:
space:
mode:
authorJonathon Anderson <anderson.jonathonm@gmail.com>2024-04-16 09:38:09 -0500
committerDylan Baker <dylan@pnwbakers.com>2024-04-16 13:25:40 -0700
commit46b3c1c30df60f00c3505c802039407ebfb6f381 (patch)
tree59b860439459ad17676ef639b8f58cf07c7c970a /mesonbuild/dependencies/python.py
parent1baabbc7f6729d2a94feb277054184233eae87d7 (diff)
downloadmeson-46b3c1c30df60f00c3505c802039407ebfb6f381.tar.gz
python: Fix header check for system method
Fixes https://github.com/mesonbuild/meson/issues/12862
Diffstat (limited to 'mesonbuild/dependencies/python.py')
-rw-r--r--mesonbuild/dependencies/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index b9b17f854..a0a22c1a5 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -221,7 +221,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase):
if mesonlib.is_windows() and self.get_windows_python_arch().endswith('64') and mesonlib.version_compare(self.version, '<3.12'):
self.compile_args += ['-DMS_WIN64=']
- if not self.clib_compiler.has_header('Python.h', '', environment, extra_args=self.compile_args):
+ if not self.clib_compiler.has_header('Python.h', '', environment, extra_args=self.compile_args)[0]:
self.is_found = False
def find_libpy(self, environment: 'Environment') -> None: