Skip to content

Commit 68b11bb

Browse files
andfoyeli-schwartz
authored andcommitted
Enable GCC to find free-threaded python DLL library
(cherry picked from commit 4ac3e7d)
1 parent 9ce23e8 commit 68b11bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mesonbuild/dependencies/python.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ def get_windows_link_args(self, limited_api: bool) -> T.Optional[T.List[str]]:
229229
elif imp_lower == 'pypy':
230230
libpath = Path(f'libpypy{verdot}-c.dll')
231231
else:
232-
libpath = Path(f'python{vernum}.dll')
232+
if self.is_freethreaded:
233+
libpath = Path(f'python{vernum}t.dll')
234+
else:
235+
libpath = Path(f'python{vernum}.dll')
233236
else:
234237
if self.is_freethreaded:
235238
libpath = Path('libs') / f'python{vernum}t.lib'

0 commit comments

Comments
 (0)