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: