Merge pull request #9806 from SenRamakri/sen_UpdateStatsARMCCFlags

Update mbed_stats.c to use __ARMCC_VERSION flag for compatibility with AC6
pull/9820/head
Cruz Monrreal 2019-02-21 21:36:33 -06:00 committed by GitHub
commit e03b3b68c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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__)