Skip to content

Commit d155d72

Browse files
committed
Issue python#24953: Include ICC version in sys.version string when bulit with ICC on Windows
1 parent 34eab07 commit d155d72

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎PC/pyconfig.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ WIN32 is still required for the locale module.
148148
#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
149149
#define MS_WINI64
150150
#elif defined(_M_X64) || defined(_M_AMD64)
151+
#ifdef __INTEL_COMPILER
152+
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
153+
#else
151154
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
155+
#endif /* __INTEL_COMPILER */
152156
#define MS_WINX64
153157
#else
154158
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
@@ -204,7 +208,11 @@ typedef _W64 int ssize_t;
204208

205209
#if defined(MS_WIN32) && !defined(MS_WIN64)
206210
#ifdef _M_IX86
211+
#ifdef __INTEL_COMPILER
212+
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
213+
#else
207214
#define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
215+
#endif /* __INTEL_COMPILER */
208216
#else
209217
#define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
210218
#endif

0 commit comments

Comments
 (0)