diff options
| author | Edgar Andrés Margffoy Tuay <andfoy@gmail.com> | 2024-10-31 17:37:52 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-11-01 07:44:54 -0400 |
| commit | 4ac3e7d356cfc1a6a290cd6961f01c11510c0618 (patch) | |
| tree | 4995ae1217416836a6d6c0c9ea32ab5928fabe58 /mesonbuild/dependencies/python.py | |
| parent | d7e1d19285e99a602d6ded7d9d0b06bbb3ae6fa6 (diff) | |
| download | meson-4ac3e7d356cfc1a6a290cd6961f01c11510c0618.tar.gz | |
Enable GCC to find free-threaded python DLL library
Diffstat (limited to 'mesonbuild/dependencies/python.py')
| -rw-r--r-- | mesonbuild/dependencies/python.py | 5 |
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' |
