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

View File

@ -74,15 +74,14 @@ set(COMPILE_FLAGS
-Wpedantic -Wpedantic
# -Wpadded # -Wpadded
-pedantic -pedantic
-ffunction-sections $<$<CONFIG:Release>:-ffunction-sections -fdata-sections>
-fdata-sections
-fuse-ld=gold -fuse-ld=gold
-funroll-loops -funroll-loops
-fdevirtualize-at-ltrans -fdevirtualize-at-ltrans
-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free
) )
set(LINKER_OPTIONS 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 -fuse-ld=gold
-fdevirtualize-at-ltrans -fdevirtualize-at-ltrans
) )