Skip to content

Commit

Permalink
python: Fix header check for system method
Browse files Browse the repository at this point in the history
  • Loading branch information
blue42u authored and dcbaker committed Apr 16, 2024
1 parent 1baabbc commit 46b3c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/dependencies/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46b3c1c

Please sign in to comment.