Skip to content

Commit

Permalink
Enable GCC to find free-threaded python DLL library
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy authored and eli-schwartz committed Nov 1, 2024
1 parent d7e1d19 commit 4ac3e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesonbuild/dependencies/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ def get_windows_link_args(self, limited_api: bool) -> T.Optional[T.List[str]]:
elif imp_lower == 'pypy':
libpath = Path(f'libpypy{verdot}-c.dll')
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:
if self.is_freethreaded:
libpath = Path('libs') / f'python{vernum}t.lib'
Expand Down

0 comments on commit 4ac3e7d

Please sign in to comment.