Enable GCC to find free-threaded python DLL library

pull/13835/head
Edgar Andrés Margffoy Tuay 3 weeks ago committed by Eli Schwartz
parent d7e1d19285
commit 4ac3e7d356
  1. 5
      mesonbuild/dependencies/python.py

@ -229,7 +229,10 @@ class _PythonDependencyBase(_Base):
elif imp_lower == 'pypy': elif imp_lower == 'pypy':
libpath = Path(f'libpypy{verdot}-c.dll') libpath = Path(f'libpypy{verdot}-c.dll')
else: else:
libpath = Path(f'python{vernum}.dll') if self.is_freethreaded:
libpath = Path(f'python{vernum}t.dll')
else:
libpath = Path(f'python{vernum}.dll')
else: else:
if self.is_freethreaded: if self.is_freethreaded:
libpath = Path('libs') / f'python{vernum}t.lib' libpath = Path('libs') / f'python{vernum}t.lib'

Loading…
Cancel
Save