summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-08-29 04:52:31 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-08-29 04:52:31 (GMT)
commit7503ca7b16add8f1fdac02ead9acfe5cff73ec2f (patch)
treeddcb3615eefc54318e5f437926d536199905fa54 /PC
parentf0f55a00b7d5d31d56b9df27ba1b3ee0e0b71893 (diff)
downloadcpython-7503ca7b16add8f1fdac02ead9acfe5cff73ec2f.zip
cpython-7503ca7b16add8f1fdac02ead9acfe5cff73ec2f.tar.gz
cpython-7503ca7b16add8f1fdac02ead9acfe5cff73ec2f.tar.bz2
Issue #24953: Include ICC version in sys.version string when bulit with ICC on Windows
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 324a130..d44173a 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -147,7 +147,11 @@ WIN32 is still required for the locale module.
#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 @@ typedef _W64 int ssize_t;
#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)")