From 410a5d4dd136fe9b139cc5f56d7f29e4c7f8c31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 22 May 2021 00:13:07 +0200 Subject: [PATCH] Change -Og to -O0 because it made a lot of problems when debugging --- stm-firmware/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm-firmware/CMakeLists.txt b/stm-firmware/CMakeLists.txt index 37ccb9b..38ab3d5 100644 --- a/stm-firmware/CMakeLists.txt +++ b/stm-firmware/CMakeLists.txt @@ -61,7 +61,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) IF(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DDEBUGBUILD) - add_compile_options(-Og -g) + add_compile_options(-O0 -g) ELSE() add_compile_options(-O3 -g) add_link_options(-Wl,--gc-sections)