From 58ad00e47abe89d958907c1900bad40f1f33c246 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Thu, 14 Mar 2024 17:11:23 +0100 Subject: [PATCH] Putting release flags in expression generator. --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37301d6..31c163c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,15 +74,14 @@ set(COMPILE_FLAGS -Wpedantic # -Wpadded -pedantic - -ffunction-sections - -fdata-sections + $<$:-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$<$:,--gc-sections,--strip-all> -fuse-ld=gold -fdevirtualize-at-ltrans )