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 )