|
5 | 5 | "-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
|
6 | 6 | "-ffunction-sections", "-fdata-sections", "-funsigned-char",
|
7 | 7 | "-MMD", "-fno-delete-null-pointer-checks",
|
8 |
| - "-fomit-frame-pointer", "-O0", "-g3", "-DMBED_DEBUG"], |
| 8 | + "-fomit-frame-pointer", "-O0", "-g3", "-DMBED_DEBUG", |
| 9 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
9 | 10 | "asm": ["-x", "assembler-with-cpp"],
|
10 | 11 | "c": ["-std=gnu99"],
|
11 | 12 | "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
|
|
17 | 18 | "ARM": {
|
18 | 19 | "common": ["-c", "--gnu", "-Otime", "--split_sections",
|
19 | 20 | "--apcs=interwork", "--brief_diagnostics", "--restrict",
|
20 |
| - "--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG"], |
| 21 | + "--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG", |
| 22 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
21 | 23 | "asm": [],
|
22 | 24 | "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
23 | 25 | "cxx": ["--cpp", "--no_rtti", "--no_vla"],
|
|
27 | 29 | "common": ["-c", "--gnu", "-Otime", "--split_sections",
|
28 | 30 | "--apcs=interwork", "--brief_diagnostics", "--restrict",
|
29 | 31 | "--multibyte_chars", "-O0", "-D__MICROLIB", "-g",
|
30 |
| - "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG"], |
| 32 | + "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG", |
| 33 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
31 | 34 | "asm": [],
|
32 | 35 | "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
33 | 36 | "cxx": ["--cpp", "--no_rtti", "--no_vla"],
|
|
36 | 39 | "IAR": {
|
37 | 40 | "common": [
|
38 | 41 | "--no_wrap_diagnostics", "-e",
|
39 |
| - "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r", "-DMBED_DEBUG"], |
| 42 | + "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r", "-DMBED_DEBUG", |
| 43 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
40 | 44 | "asm": [],
|
41 | 45 | "c": ["--vla"],
|
42 | 46 | "cxx": ["--guard_calls", "--no_static_destruction"],
|
|
0 commit comments