|
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", "-Os", "-g1"], |
| 8 | + "-fomit-frame-pointer", "-Os", "-g1", "-DMBED_TRAP_ERRORS_ENABLED=1"], |
9 | 9 | "asm": ["-x", "assembler-with-cpp"],
|
10 | 10 | "c": ["-std=gnu99"],
|
11 | 11 | "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
|
|
19 | 19 | "-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
|
20 | 20 | "-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
|
21 | 21 | "-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
|
22 |
| - "-fshort-enums", "-fshort-wchar"], |
| 22 | + "-fshort-enums", "-fshort-wchar", "-DMBED_TRAP_ERRORS_ENABLED=1"], |
23 | 23 | "asm": [],
|
24 | 24 | "c": ["-D__ASSERT_MSG", "-std=gnu99"],
|
25 | 25 | "cxx": ["-fno-rtti", "-std=gnu++98"],
|
|
28 | 28 | "ARM": {
|
29 | 29 | "common": ["-c", "--gnu", "-Otime", "--split_sections",
|
30 | 30 | "--apcs=interwork", "--brief_diagnostics", "--restrict",
|
31 |
| - "--multibyte_chars", "-O3"], |
| 31 | + "--multibyte_chars", "-O3", "-DMBED_TRAP_ERRORS_ENABLED=1"], |
32 | 32 | "asm": [],
|
33 | 33 | "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
34 | 34 | "cxx": ["--cpp", "--no_rtti", "--no_vla"],
|
|
38 | 38 | "common": ["-c", "--gnu", "-Otime", "--split_sections",
|
39 | 39 | "--apcs=interwork", "--brief_diagnostics", "--restrict",
|
40 | 40 | "--multibyte_chars", "-O3", "-D__MICROLIB",
|
41 |
| - "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD"], |
| 41 | + "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", |
| 42 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
42 | 43 | "asm": [],
|
43 | 44 | "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
|
44 | 45 | "cxx": ["--cpp", "--no_rtti", "--no_vla"],
|
|
47 | 48 | "IAR": {
|
48 | 49 | "common": [
|
49 | 50 | "--no_wrap_diagnostics", "-e",
|
50 |
| - "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict"], |
| 51 | + "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh", "--enable_restrict", |
| 52 | + "-DMBED_TRAP_ERRORS_ENABLED=1"], |
51 | 53 | "asm": [],
|
52 | 54 | "c": ["--vla", "--diag_suppress=Pe546"],
|
53 | 55 | "cxx": ["--guard_calls", "--no_static_destruction"],
|
|
0 commit comments