Add support to recognize clang.

* lib/compiler.c: Identify the clang compiler.
	* lib/compiler.cc: Ditto.
This commit is contained in:
Doug Evans
2014-04-07 14:14:03 -07:00
parent 17c34b8f3d
commit 5e70318114
3 changed files with 13 additions and 0 deletions

View File

@ -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