Fix single-threaded apps for IAR v8 builds

For single-threaded apps __iar_Initlocks() is not required and must
not be called because the proper IAR library is brought in only if
"--threaded_lib" is defined in the linker command.
pull/10469/head
RFulchiero 2019-03-08 15:33:04 -06:00 committed by adbridge
parent 0063e5de32
commit bf95f43a24
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ void __iar_program_start(void)
void mbed_toolchain_init(void) void mbed_toolchain_init(void)
{ {
#if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000) #if defined(__IAR_SYSTEMS_ICC__ ) && (__VER__ >= 8000000) && !defined(MBED_RTOS_SINGLE_THREAD)
__iar_Initlocks(); __iar_Initlocks();
#endif #endif