mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Add support to recognize clang.
* lib/compiler.c: Identify the clang compiler. * lib/compiler.cc: Ditto.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user