Update mbed_stats.c to use __ARMCC_VERSION flag to be compatible with AC6

pull/9806/head
Senthil Ramakrishnan 2019-02-21 17:12:09 -06:00
parent 235a75f5b8
commit 3fb8224237
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ void mbed_stats_sys_get(mbed_stats_sys_t *stats)
#if defined(__IAR_SYSTEMS_ICC__)
stats->compiler_id = IAR;
stats->compiler_version = __VER__;
#elif defined(__CC_ARM)
#elif defined(__ARMCC_VERSION)
stats->compiler_id = ARM;
stats->compiler_version = __ARMCC_VERSION;
#elif defined(__GNUC__)