mirror of https://github.com/ARMmbed/mbed-os.git
ARMC6: Enable link-time optimizer for release profile
parent
f73a62afbf
commit
0780f89011
|
@ -15,7 +15,7 @@
|
|||
"-Wl,-n"]
|
||||
},
|
||||
"ARMC6": {
|
||||
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
|
||||
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz", "-flto",
|
||||
"-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"]
|
||||
"--keep=os_cb_sections", "--lto", "--lto_level=Oz"]
|
||||
},
|
||||
"ARM": {
|
||||
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
|
||||
|
|
Loading…
Reference in New Issue