This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/update_debug_optimalization_flag
in repository https://gitbox.apache.org/repos/asf/celix.git

commit ea2fc914bc7b976916c581a196ae86ccdeca363a
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sun Dec 11 11:57:27 2022 +0100

    Update debug flags, so that -Og (optimalization for debugging) is used
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc96ee5e..59e8e0ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -147,8 +147,8 @@ endif()
 
 # Set build type specific flags
 # Debug
-set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG ${CMAKE_C_FLAGS}")
-set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG ${CMAKE_CXX_FLAGS}")
+set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG -Og ${CMAKE_C_FLAGS}")
+set(CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -Og ${CMAKE_CXX_FLAGS}")
 set(CMAKE_DEBUG_POSTFIX "d")
 
 if (CMAKE_BUILD_TYPE STREQUAL "Debug")

Reply via email to