Change -Og to -O0 because it made a lot of problems when debugging

This commit is contained in:
Mario Hüttel 2021-05-22 00:13:07 +02:00
parent fe0bde5c32
commit 410a5d4dd1
1 changed files with 1 additions and 1 deletions

View File

@ -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)