File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
// Note the __clang__ conditional has to come before the __GNUC__ one because
9
9
// clang pretends to be GCC.
10
- #if defined(__clang__ )
10
+ #if defined(__clang__ ) && !defined( _WIN32 )
11
11
#define COMPILER "[Clang " __clang_version__ "]"
12
12
#elif defined(__GNUC__ )
13
13
/* To not break compatibility with things that determine
18
18
#define COMP_SEP " "
19
19
#if defined(__x86_64__ )
20
20
#define ARCH_SUFFIX " 64 bit (AMD64)"
21
+ #elif defined(__aarch64__ )
22
+ #define ARCH_SUFFIX " 64 bit (ARM64)"
21
23
#else
22
24
#define ARCH_SUFFIX " 32 bit"
23
25
#endif
24
26
#else
25
27
#define COMP_SEP "\n"
26
28
#define ARCH_SUFFIX ""
27
29
#endif
30
+ #if defined(__clang__ )
31
+ #define str (x ) #x
32
+ #define xstr (x ) str(x)
33
+ #define COMPILER COMP_SEP "[GCC Clang " xstr(__clang_major__) "." \
34
+ xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
35
+ #else
28
36
#define COMPILER COMP_SEP "[GCC " __VERSION__ ARCH_SUFFIX "]"
37
+ #endif
29
38
// Generic fallbacks.
30
39
#elif defined(__cplusplus )
31
40
#define COMPILER "[C++]"
You can’t perform that action at this time.
0 commit comments