mirror of https://github.com/ARMmbed/mbed-os.git
armc6: make lto an optional profile
parent
57ac6c83d6
commit
083e3e569d
|
@ -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",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ARMC6": {
|
||||
"common": ["-flto"],
|
||||
"ld": ["--lto", "--lto_level=Oz"]
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue