aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2023-09-27 11:24:12 -0400
committerGitHub <noreply@github.com>2023-09-27 15:24:12 +0000
commit773614e03aef29c744d0300bd62fc8254e3c06b6 (patch)
tree07b48508c7257bcb21aef2e29a66822c0cea8789 /Python
parentb35f0843fc15486b17bc945dde08b306b8e4e81f (diff)
downloadcpython-773614e03aef29c744d0300bd62fc8254e3c06b6.tar.gz
cpython-773614e03aef29c744d0300bd62fc8254e3c06b6.zip
gh-109740: Use 't' in `--disable-gil` SOABI (#109922)
Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
Diffstat (limited to 'Python')
-rw-r--r--Python/dynload_win.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index f69995b8f9e..fcb3cb74404 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -15,10 +15,16 @@
#define PYD_DEBUG_SUFFIX ""
#endif
+#ifdef Py_NOGIL
+# define PYD_THREADING_TAG "t"
+#else
+# define PYD_THREADING_TAG ""
+#endif
+
#ifdef PYD_PLATFORM_TAG
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) "-" PYD_PLATFORM_TAG ".pyd"
+#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) PYD_THREADING_TAG "-" PYD_PLATFORM_TAG ".pyd"
#else
-#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) ".pyd"
+#define PYD_TAGGED_SUFFIX PYD_DEBUG_SUFFIX ".cp" Py_STRINGIFY(PY_MAJOR_VERSION) Py_STRINGIFY(PY_MINOR_VERSION) PYD_THREADING_TAG ".pyd"
#endif
#define PYD_UNTAGGED_SUFFIX PYD_DEBUG_SUFFIX ".pyd"