[Python-checkins] cpython (3.5): Issue #24953: Include ICC version in sys.version string when bulit with ICC on

zach.ware python-checkins at python.org
Sat Aug 29 07:13:56 CEST 2015


https://hg.python.org/cpython/rev/ca88db01bb51
changeset:   97539:ca88db01bb51
branch:      3.5
parent:      97535:687da8760a58
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Fri Aug 28 23:52:31 2015 -0500
summary:
  Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows

files:
  PC/pyconfig.h |  8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/PC/pyconfig.h b/PC/pyconfig.h
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -147,7 +147,11 @@
 #define MS_WINI64
 #define PYD_PLATFORM_TAG "win_ia64"
 #elif defined(_M_X64) || defined(_M_AMD64)
+#if defined(__INTEL_COMPILER)
+#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
+#else
 #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
+#endif /* __INTEL_COMPILER */
 #define MS_WINX64
 #define PYD_PLATFORM_TAG "win_amd64"
 #else
@@ -194,7 +198,11 @@
 
 #if defined(MS_WIN32) && !defined(MS_WIN64)
 #if defined(_M_IX86)
+#if defined(__INTEL_COMPILER)
+#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
+#else
 #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
+#endif /* __INTEL_COMPILER */
 #define PYD_PLATFORM_TAG "win32"
 #elif defined(_M_ARM)
 #define COMPILER _Py_PASTE_VERSION("32 bit (ARM)")

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list