From c0ad029a08c5ebe00ace08955eb83944071aaf11 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 13 Jun 2020 09:39:54 +0200 Subject: Comment --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82cd251..8b01771 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) include(GNUInstallDirs) +# Add -O0 to remove optimizations when using gcc set(ADD_FLAGS "-Os -s -fno-rtti") IF(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") -- cgit v1.2.3