You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2022/12/11 10:57:43 UTC
[celix] branch feature/update_debug_optimalization_flag created (now ea2fc914)
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a change to branch feature/update_debug_optimalization_flag
in repository https://gitbox.apache.org/repos/asf/celix.git
at ea2fc914 Update debug flags, so that -Og (optimalization for debugging) is used
This branch includes the following new commits:
new ea2fc914 Update debug flags, so that -Og (optimalization for debugging) is used
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[celix] 01/01: Update debug flags, so that -Og (optimalization for debugging) is used
Posted by pn...@apache.org.
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 <pe...@gmail.com>
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")