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/10020/head
RFulchiero 2019-03-08 15:33:04 -06:00
parent 355f09bbac
commit 0562128998
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