projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support to recognize clang.
[platform/upstream/binutils.git]
/
gdb
/
testsuite
/
lib
/
compiler.cc
diff --git
a/gdb/testsuite/lib/compiler.cc
b/gdb/testsuite/lib/compiler.cc
index
ee251bc
..
79c68b4
100644
(file)
--- a/
gdb/testsuite/lib/compiler.cc
+++ b/
gdb/testsuite/lib/compiler.cc
@@
-61,3
+61,7
@@
set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
#if defined (__ARMCC_VERSION)
set compiler_info [join {armcc __ARMCC_VERSION} -]
#endif
+
+#if defined (__clang__)
+set compiler_info [join {clang __clang_major__ __clang_minor__ __clang_patchlevel__} -]
+#endif