Skip to content

Commit 732bd33

Browse files
author
Filip Jagodzinski
committed
GCC: Enable link-time optimizer for release profile
1 parent 609612c commit 732bd33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/profiles/release.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"-fmessage-length=0", "-fno-exceptions",
66
"-ffunction-sections", "-fdata-sections", "-funsigned-char",
77
"-MMD", "-fno-delete-null-pointer-checks",
8-
"-fomit-frame-pointer", "-Os", "-DNDEBUG", "-g"],
8+
"-fomit-frame-pointer", "-Os", "-flto", "-DNDEBUG", "-g"],
99
"asm": ["-x", "assembler-with-cpp"],
1010
"c": ["-std=gnu11"],
1111
"cxx": ["-std=gnu++14", "-fno-rtti", "-Wvla"],
1212
"ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r",
1313
"-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_memalign_r",
1414
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
15-
"-Wl,-n"]
15+
"-Wl,-n", "-Os", "-flto"]
1616
},
1717
"ARMC6": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",

0 commit comments

Comments
 (0)