From e2b708d442ef163e5b05d7492ff0b96fda5aafba Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 14 Nov 2024 18:38:20 +0100 Subject: [PATCH] port: set default opt level to -Og for now (see #529) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf33b754..9ce429596 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,6 +151,11 @@ include_directories("${CMAKE_SOURCE_DIR}/src/lib/ultra/audio") include_directories("${CMAKE_SOURCE_DIR}/port/include") include_directories("${CMAKE_BINARY_DIR}/port/include") +# Set Release optimization to -Og until I fix the -O2 issues +if(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug")) + add_compile_options(-Og) +endif() + # Common CFLAGS add_compile_options( -fno-inline-functions