Build: Enable debug format flag -ggdb3 instead of -g by default for debug builds

This commit is contained in:
Shauren
2025-10-11 12:47:42 +02:00
parent ccb078da03
commit 2b38f40988
2 changed files with 6 additions and 14 deletions

View File

@@ -57,13 +57,9 @@ if(WITH_WARNINGS)
message(STATUS "Clang: All warnings enabled")
endif()
if(WITH_COREDEBUG)
target_compile_options(trinity-compile-option-interface
INTERFACE
-g3)
message(STATUS "Clang: Debug-flags set (-g3)")
endif()
target_compile_options(trinity-compile-option-interface
INTERFACE
$<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-g3 -glldb>)
if(ASAN)
target_compile_options(trinity-compile-option-interface

View File

@@ -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
$<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-ggdb3>)
if(ASAN)
target_compile_options(trinity-compile-option-interface