Putting release flags in expression generator.

This commit is contained in:
Pcornat 2024-03-14 17:11:23 +01:00
parent b2f4f31abd
commit 58ad00e47a
Signed by: Pcornat
GPG Key ID: E0326CC678A00BDD
1 changed files with 2 additions and 3 deletions

View File

@ -74,15 +74,14 @@ set(COMPILE_FLAGS
-Wpedantic
# -Wpadded
-pedantic
-ffunction-sections
-fdata-sections
$<$<CONFIG:Release>:-ffunction-sections -fdata-sections>
-fuse-ld=gold
-funroll-loops
-fdevirtualize-at-ltrans
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
)
set(LINKER_OPTIONS
-Wl,--sort-common,--as-needed,--gc-sections,--strip-all
-Wl,--sort-common,--as-needed$<$<CONFIG:Release>:,--gc-sections,--strip-all>
-fuse-ld=gold
-fdevirtualize-at-ltrans
)