GCC: Enable link-time optimizer for release profile

pull/11856/head
Filip Jagodzinski 2019-11-07 17:27:26 +01:00
parent d7f3341974
commit f87a8e0f52
1 changed files with 2 additions and 2 deletions

View File

@ -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",