This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch feature/refactor_bundle_cache in repository https://gitbox.apache.org/repos/asf/celix.git
commit 79535931af9198084f11bc368316d1dd1692cbc5 Author: Pepijn Noltes <[email protected]> AuthorDate: Tue Jan 31 21:15:04 2023 +0100 Revert to -O0 instead of -Og for DEBUG, because -Og optimizes out debug info. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff4514a0..265b3359 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,8 +154,8 @@ endif() # Set build type specific flags # Debug -set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG -Og ${CMAKE_C_FLAGS}") -set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -Og ${CMAKE_CXX_FLAGS}") +set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG -O0 ${CMAKE_C_FLAGS}") +set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -O0 ${CMAKE_CXX_FLAGS}") set(CMAKE_DEBUG_POSTFIX "d") if (CMAKE_BUILD_TYPE STREQUAL "Debug")
