From fe305f52c38599b8de6e13bb67606cb5a20d24b7 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 25 Oct 2023 05:02:21 -0400 Subject: [PATCH] Debug mode should build unoptimized, to help with backtraces. --- cmake/rules.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/rules.cmake b/cmake/rules.cmake index e9a5d8f..ccb603e 100644 --- a/cmake/rules.cmake +++ b/cmake/rules.cmake @@ -5,6 +5,10 @@ add_compile_options( -fdiagnostics-column-unit=byte ) add_compile_options( -fconcepts-diagnostics-depth=0 ) include_directories( ${CMAKE_BINARY_DIR} . ) +if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" ) +add_compile_options( -O0 ) +add_compile_options( -g ) +endif() list( APPEND CMAKE_CTEST_ARGUMENTS "-VV" )