From 46b3c1c30df60f00c3505c802039407ebfb6f381 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Tue, 16 Apr 2024 09:38:09 -0500 Subject: [PATCH] python: Fix header check for system method Fixes https://github.com/mesonbuild/meson/issues/12862 --- mesonbuild/dependencies/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index b9b17f854cde..a0a22c1a54ad 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -221,7 +221,7 @@ def __init__(self, name: str, environment: 'Environment', 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: