Skip to content

Commit 2910ed5

Browse files
author
Cruz Monrreal
authored
Merge pull request #9277 from deepikabhavnani/flags_fixes
Sleep: error flags fix
2 parents b1d0d9e + 7b37b42 commit 2910ed5

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

tools/profiles/debug.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2222
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
23-
"-fshort-enums", "-fshort-wchar" ],
23+
"-fshort-enums", "-fshort-wchar", "-DMBED_DEBUG",
24+
"-DMBED_TRAP_ERRORS_ENABLED=1"],
2425
"asm": [],
2526
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2627
"cxx": ["-fno-rtti", "-std=gnu++98"],

tools/profiles/develop.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-fmessage-length=0", "-fno-exceptions", "-fno-builtin",
66
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
77
"-MMD", "-fno-delete-null-pointer-checks",
8-
"-fomit-frame-pointer", "-Os", "-g1"],
8+
"-fomit-frame-pointer", "-Os", "-g1", "-DMBED_TRAP_ERRORS_ENABLED=1"],
99
"asm": ["-x", "assembler-with-cpp"],
1010
"c": ["-std=gnu99"],
1111
"cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],
@@ -19,7 +19,7 @@
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2020
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2121
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
22-
"-fshort-enums", "-fshort-wchar"],
22+
"-fshort-enums", "-fshort-wchar", "-DMBED_TRAP_ERRORS_ENABLED=1"],
2323
"asm": [],
2424
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2525
"cxx": ["-fno-rtti", "-std=gnu++98"],
@@ -28,7 +28,7 @@
2828
"ARM": {
2929
"common": ["-c", "--gnu", "-Otime", "--split_sections",
3030
"--apcs=interwork", "--brief_diagnostics", "--restrict",
31-
"--multibyte_chars", "-O3"],
31+
"--multibyte_chars", "-O3", "-DMBED_TRAP_ERRORS_ENABLED=1"],
3232
"asm": [],
3333
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
3434
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
@@ -38,7 +38,8 @@
3838
"common": ["-c", "--gnu", "-Otime", "--split_sections",
3939
"--apcs=interwork", "--brief_diagnostics", "--restrict",
4040
"--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"],
4243
"asm": [],
4344
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
4445
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
@@ -47,7 +48,8 @@
4748
"IAR": {
4849
"common": [
4950
"--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"],
5153
"asm": [],
5254
"c": ["--vla", "--diag_suppress=Pe546"],
5355
"cxx": ["--guard_calls", "--no_static_destruction"],

tools/profiles/release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2020
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
2121
"-fno-exceptions", "-MMD", "-D_LIBCPP_EXTERN_TEMPLATE(...)=",
22-
"-fshort-enums", "-fshort-wchar"],
22+
"-fshort-enums", "-fshort-wchar", "-DNDEBUG"],
2323
"asm": [],
2424
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2525
"cxx": ["-fno-rtti", "-std=gnu++98"],

0 commit comments

Comments
 (0)