Skip to content

Commit 8fcb00c

Browse files
Filip Jagodzinskimaciejbocianski
authored andcommitted
ARMC6: Enable link-time optimizer for develop profile
1 parent 0780f89 commit 8fcb00c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/profiles/develop.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"-Wl,-n"]
1616
},
1717
"ARMC6": {
18-
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
18+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-flto",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2020
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@@ -25,7 +25,7 @@
2525
"c": ["-D__ASSERT_MSG", "-std=gnu11"],
2626
"cxx": ["-fno-rtti", "-std=gnu++14"],
2727
"ld": ["--show_full_path", "--legacyalign", "--any_contingency",
28-
"--keep=os_cb_sections"]
28+
"--keep=os_cb_sections", "--lto", "--lto_level=Os"]
2929
},
3030
"ARM": {
3131
"common": ["-c", "--gnu", "-Ospace", "--split_sections",

0 commit comments

Comments
 (0)