Skip to content

Commit 5db5a47

Browse files
committed
Link against python3t.lib
1 parent ab41a34 commit 5db5a47

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Include/pyabi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
*
5656
* (Don't use Py_TARGET_ABI3T directly. It's currently only used to set these
5757
* 2 macros, and defined for users' convenience.)
58+
*
59+
* This logic is currently partially duplicated in PC/pyconfig.h.
5860
*/
5961
#if defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED) \
6062
&& !defined(Py_TARGET_ABI3T)

PC/pyconfig.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,14 +331,16 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
331331
# if defined(Py_GIL_DISABLED)
332332
# if defined(Py_DEBUG)
333333
# pragma comment(lib,"python315t_d.lib")
334-
# elif defined(Py_LIMITED_API)
334+
# elif defined(Py_LIMITED_API) || defined(Py_TARGET_ABI3T)
335335
# pragma comment(lib,"python3t.lib")
336336
# else
337337
# pragma comment(lib,"python315t.lib")
338338
# endif /* Py_DEBUG */
339339
# else /* Py_GIL_DISABLED */
340340
# if defined(Py_DEBUG)
341341
# pragma comment(lib,"python315_d.lib")
342+
# elif defined(Py_TARGET_ABI3T)
343+
# pragma comment(lib,"python3t.lib")
342344
# elif defined(Py_LIMITED_API)
343345
# pragma comment(lib,"python3.lib")
344346
# else

0 commit comments

Comments
 (0)