Skip to content

Commit 23aafbf

Browse files
committed
Optimize space usage on builds
by not creating gigantic exception nonsense
1 parent 33113ae commit 23aafbf

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tools/profiles/debug.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"ARMC6": {
1919
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O0",
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
21-
"-DMULADDC_CANNOT_USE_R7"],
21+
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
22+
"-fno-exceptions"],
2223
"asm": [],
2324
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2425
"cxx": ["-fno-rtti", "-std=gnu++98"],

tools/profiles/develop.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-DMULADDC_CANNOT_USE_R7"],
20+
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
21+
"-fno-exceptions"],
2122
"asm": [],
2223
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2324
"cxx": ["-fno-rtti", "-std=gnu++98"],

tools/profiles/release.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
20-
"-DMULADDC_CANNOT_USE_R7"],
20+
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
21+
"-fno-exceptions"],
2122
"asm": [],
2223
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
2324
"cxx": ["-fno-rtti", "-std=gnu++98"],

0 commit comments

Comments
 (0)