Skip to content

Commit 1e21203

Browse files
naveen521kklazka
authored andcommitted
Add ucrt to version string
1 parent bd5af5e commit 1e21203

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
@@ -6377,7 +6377,7 @@ case $host_os in
63776377
if test $linking_to_ucrt = no; then
63786378
PYD_PLATFORM_TAG+="_msvcrt"
63796379
else
6380-
PYD_PLATFORM_TAG += "_ucrt"
6380+
PYD_PLATFORM_TAG+="_ucrt"
63816381
fi
63826382
if test -n "${cc_is_clang}"; then
63836383
# it is CLANG32

0 commit comments

Comments
 (0)