From 1c487de3b90fc7d512862d7c170b5b6748e89fa6 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 11 Oct 2025 14:09:19 +0200 Subject: Build: Partial revert of 2b38f40988d0e0fab5b86ba82812e79681c77363 --- cmake/compiler/gcc/settings.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cmake/compiler/gcc/settings.cmake') diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 463cf1e47b4..8788ab3a4c4 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -41,9 +41,13 @@ if(WITH_WARNINGS) message(STATUS "GCC: All warnings enabled") endif() -target_compile_options(trinity-compile-option-interface - INTERFACE - $<$,$>:-ggdb3>) +if(WITH_COREDEBUG) + target_compile_options(trinity-compile-option-interface + INTERFACE + -ggdb3) + + message(STATUS "GCC: Debug-flags set (-ggdb3)") +endif() if(ASAN) target_compile_options(trinity-compile-option-interface -- cgit v1.2.3