mirror of https://github.com/ARMmbed/mbed-os.git
GCC: Enable link-time optimizer for release profile
parent
d7f3341974
commit
f87a8e0f52
|
@ -5,14 +5,14 @@
|
|||
"-fmessage-length=0", "-fno-exceptions",
|
||||
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
|
||||
"-MMD",
|
||||
"-fomit-frame-pointer", "-Os", "-DNDEBUG", "-g"],
|
||||
"-fomit-frame-pointer", "-Os", "-flto", "-DNDEBUG", "-g"],
|
||||
"asm": ["-x", "assembler-with-cpp"],
|
||||
"c": ["-std=gnu11"],
|
||||
"cxx": ["-std=gnu++14", "-fno-rtti", "-Wvla"],
|
||||
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
|
||||
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r",
|
||||
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
|
||||
"-Wl,-n"]
|
||||
"-Wl,-n", "-Os", "-flto"]
|
||||
},
|
||||
"ARMC6": {
|
||||
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
|
||||
|
|
Loading…
Reference in New Issue