From e8d5829c1fd36676c9b6d770b04de5b879630de1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 15 Aug 2022 20:03:45 +0200 Subject: [PATCH] Reduce memory usage when compiling slightly --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 214aad13..d7de8ad6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -266,7 +266,6 @@ if(NOT MSVC) "${CMAKE_CXX_FLAGS} \ -Wall \ -Wextra \ - -pipe \ -pedantic \ -fsized-deallocation \ -fdiagnostics-color=always \ @@ -750,6 +749,9 @@ if(NOT MSVC AND NOT HAIKU) target_compile_options(nheko PRIVATE "-Werror") endif() endif() +#if(NOT MSVC) +# target_link_options(nheko PRIVATE "LINKER:,--gc-sections") +#endif() if(MAN) add_subdirectory(man)