From 9cd7aa60f0ca60152c31b9ef5dd341a391435029 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 4 Oct 2021 02:20:08 +0200 Subject: [PATCH] cmake: don't optimize debug build --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb019e178..95927c98d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -996,11 +996,6 @@ else() endif() set(DEBUG_FLAGS "-g3") - if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8)) - set(DEBUG_FLAGS "${DEBUG_FLAGS} -Og ") - else() - set(DEBUG_FLAGS "${DEBUG_FLAGS} -O0 ") - endif() # At least some CLANGs default to not enough for monero set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=900")