File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 10
10
#if defined(__clang__ )
11
11
#define COMPILER "[Clang " __clang_version__ "]"
12
12
#elif defined(__GNUC__ )
13
- #define COMPILER "[GCC " __VERSION__ "]"
13
+ /* To not break compatibility with things that determine
14
+ CPU arch by calling get_build_version in msvccompiler.py
15
+ (such as NumPy) add "32 bit" or "64 bit (AMD64)" on Windows
16
+ and also use a space as a separator rather than a newline. */
17
+ #if defined(_WIN32 )
18
+ #define COMP_SEP " "
19
+ #if defined(__x86_64__ )
20
+ #define ARCH_SUFFIX " 64 bit (AMD64)"
21
+ #else
22
+ #define ARCH_SUFFIX " 32 bit"
23
+ #endif
24
+ #else
25
+ #define COMP_SEP "\n"
26
+ #define ARCH_SUFFIX ""
27
+ #endif
28
+ #define COMPILER COMP_SEP "[GCC " __VERSION__ ARCH_SUFFIX "]"
14
29
// Generic fallbacks.
15
30
#elif defined(__cplusplus )
16
31
#define COMPILER "[C++]"
You can’t perform that action at this time.
0 commit comments