From 5e703181143d5eb3724115e5cbb59a6b294e6222 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 7 Apr 2014 14:14:03 -0700 Subject: Add support to recognize clang. * lib/compiler.c: Identify the clang compiler. * lib/compiler.cc: Ditto. --- gdb/testsuite/lib/compiler.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/testsuite/lib/compiler.c') diff --git a/gdb/testsuite/lib/compiler.c b/gdb/testsuite/lib/compiler.c index afa0e59..c28367b 100644 --- a/gdb/testsuite/lib/compiler.c +++ b/gdb/testsuite/lib/compiler.c @@ -73,3 +73,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 -- cgit v1.1