summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/dependencies/python.py')
-rw-r--r--mesonbuild/dependencies/python.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index fff4aaa9e..326e605d8 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -229,7 +229,10 @@ class _PythonDependencyBase(_Base):
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'