Skip to content

Commit

Permalink
Add ucrt to version string
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Nov 1, 2024
1 parent 980e83d commit 6131926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Python/getcompiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@
#if defined(__clang__)
#define str(x) #x
#define xstr(x) str(x)
#if defined(_UCRT)
#define COMPILER COMP_SEP "[GCC UCRT Clang " xstr(__clang_major__) "." \
xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
#else
#define COMPILER COMP_SEP "[GCC Clang " xstr(__clang_major__) "." \
xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
#endif
#else
#if defined(_UCRT)
#define COMPILER COMP_SEP "[GCC UCRT " __VERSION__ ARCH_SUFFIX "]"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6353,7 +6353,7 @@ case $host_os in
if test $linking_to_ucrt = no; then
PYD_PLATFORM_TAG+="_msvcrt"
else
PYD_PLATFORM_TAG += "_ucrt"
PYD_PLATFORM_TAG+="_ucrt"
fi
if test -n "${cc_is_clang}"; then
# it is CLANG32
Expand Down

0 comments on commit 6131926

Please sign in to comment.