Disable destruction of global C++ objects when IAR is used.

This behavior is realized by enabling the flag --no_static_destruction
when the compilerin the invoked.
pull/2745/head
Vincent Coubard 2016-09-19 11:59:24 +01:00
parent 7669d7f8f5
commit 2f0b772c77
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class IAR(mbedToolchain):
"--diag_suppress=Pa050,Pa084,Pa093,Pa082"],
'asm': [],
'c': ["--vla"],
'cxx': ["--guard_calls"],
'cxx': ["--guard_calls", "--no_static_destruction"],
'ld': ["--skip_dynamic_initialization", "--threaded_lib"],
}