Skip to content

Commit 083e3e5

Browse files
armc6: make lto an optional profile
1 parent 57ac6c8 commit 083e3e5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
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", "-flto",
18+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
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", "--lto", "--lto_level=Os"]
28+
"--keep=os_cb_sections"]
2929
},
3030
"ARM": {
3131
"common": ["-c", "--gnu", "-Ospace", "--split_sections",

tools/profiles/extensions/lto.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ARMC6": {
3+
"common": ["-flto"],
4+
"ld": ["--lto", "--lto_level=Oz"]
5+
}
6+
}

tools/profiles/release.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", "-Oz", "-flto",
18+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
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", "--lto", "--lto_level=Oz"]
28+
"--keep=os_cb_sections"]
2929
},
3030
"ARM": {
3131
"common": ["-c", "--gnu", "-Ospace", "--split_sections",

0 commit comments

Comments
 (0)