27 lines
812 B
Diff
27 lines
812 B
Diff
--- Python-3.5.0/Python/getcompiler.c.orig 2015-05-23 17:09:24.000000000 +0100
|
|
+++ Python-3.5.0/Python/getcompiler.c 2016-01-02 15:13:57.737265800 +0000
|
|
@@ -6,7 +6,22 @@
|
|
#ifndef COMPILER
|
|
|
|
#ifdef __GNUC__
|
|
-#define COMPILER "\n[GCC " __VERSION__ "]"
|
|
+/* To not break compatibility with things that determine
|
|
+ CPU arch by calling get_build_version in msvccompiler.py
|
|
+ (such as NumPy) add "32 bit" or "64 bit (AMD64)" on Windows
|
|
+ and also use a space as a separator rather than a newline. */
|
|
+#if defined(_WIN32)
|
|
+#define COMP_SEP " "
|
|
+#if defined(__x86_64__)
|
|
+#define ARCH_SUFFIX " 64 bit (AMD64)"
|
|
+#else
|
|
+#define ARCH_SUFFIX " 32 bit"
|
|
+#endif
|
|
+#else
|
|
+#define COMP_SEP "\n"
|
|
+#define ARCH_SUFFIX ""
|
|
+#endif
|
|
+#define COMPILER COMP_SEP "[GCC " __VERSION__ ARCH_SUFFIX "]"
|
|
#endif
|
|
|
|
#endif /* !COMPILER */
|