From 2b38f40988d0e0fab5b86ba82812e79681c77363 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 11 Oct 2025 12:47:42 +0200 Subject: Build: Enable debug format flag -ggdb3 instead of -g by default for debug builds --- cmake/compiler/gcc/settings.cmake | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cmake/compiler/gcc') diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 4861f48dccc..463cf1e47b4 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -41,13 +41,9 @@ if(WITH_WARNINGS) message(STATUS "GCC: All warnings enabled") endif() -if(WITH_COREDEBUG) - target_compile_options(trinity-compile-option-interface - INTERFACE - -g3) - - message(STATUS "GCC: Debug-flags set (-g3)") -endif() +target_compile_options(trinity-compile-option-interface + INTERFACE + $<$,$>:-ggdb3>) if(ASAN) target_compile_options(trinity-compile-option-interface -- cgit v1.2.3