armc6: make lto an optional profile

pull/11874/head
Maciej Bocianski 2020-01-28 14:41:44 +01:00
parent 57ac6c83d6
commit 083e3e569d
3 changed files with 10 additions and 4 deletions

View File

@ -15,7 +15,7 @@
"-Wl,-n"]
},
"ARMC6": {
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-flto",
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@ -25,7 +25,7 @@
"c": ["-D__ASSERT_MSG", "-std=gnu11"],
"cxx": ["-fno-rtti", "-std=gnu++14"],
"ld": ["--show_full_path", "--legacyalign", "--any_contingency",
"--keep=os_cb_sections", "--lto", "--lto_level=Os"]
"--keep=os_cb_sections"]
},
"ARM": {
"common": ["-c", "--gnu", "-Ospace", "--split_sections",

View File

@ -0,0 +1,6 @@
{
"ARMC6": {
"common": ["-flto"],
"ld": ["--lto", "--lto_level=Oz"]
}
}

View File

@ -15,7 +15,7 @@
"-Wl,-n"]
},
"ARMC6": {
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz", "-flto",
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
"-Wno-reserved-user-defined-literal", "-Wno-deprecated-register",
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@ -25,7 +25,7 @@
"c": ["-D__ASSERT_MSG", "-std=gnu11"],
"cxx": ["-fno-rtti", "-std=gnu++14"],
"ld": ["--show_full_path", "--legacyalign", "--any_contingency",
"--keep=os_cb_sections", "--lto", "--lto_level=Oz"]
"--keep=os_cb_sections"]
},
"ARM": {
"common": ["-c", "--gnu", "-Ospace", "--split_sections",