Skip to content

Commit b00d375

Browse files
committed
Add ucrt to version string
1 parent d6355bc commit b00d375

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Python/getcompiler.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@
3232
#if defined(__clang__)
3333
#define str(x) #x
3434
#define xstr(x) str(x)
35+
#if defined(_UCRT)
36+
#define COMPILER COMP_SEP "[GCC UCRT Clang " xstr(__clang_major__) "." \
37+
xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
38+
#else
3539
#define COMPILER COMP_SEP "[GCC Clang " xstr(__clang_major__) "." \
3640
xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
41+
#endif
3742
#else
3843
#if defined(_UCRT)
3944
#define COMPILER COMP_SEP "[GCC UCRT " __VERSION__ ARCH_SUFFIX "]"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6353,7 +6353,7 @@ case $host_os in
63536353
if test $linking_to_ucrt = no; then
63546354
PYD_PLATFORM_TAG+="_msvcrt"
63556355
else
6356-
PYD_PLATFORM_TAG += "_ucrt"
6356+
PYD_PLATFORM_TAG+="_ucrt"
63576357
fi
63586358
if test -n "${cc_is_clang}"; then
63596359
# it is CLANG32

0 commit comments

Comments
 (0)