Skip to content

Commit 7714042

Browse files
ShaurenKrigsgaldrnet
authored andcommitted
Build: Partial revert of 2b38f40988d0e0fab5b86ba82812e79681c77363
(cherry picked from commit 1c487de3b90fc7d512862d7c170b5b6748e89fa6)
1 parent 7e1ca94 commit 7714042

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

cmake/compiler/clang/settings.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ if(WITH_WARNINGS)
5555
message(STATUS "Clang: All warnings enabled")
5656
endif()
5757

58-
target_compile_options(trinity-compile-option-interface
59-
INTERFACE
60-
$<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-g3 -glldb>)
58+
if(WITH_COREDEBUG)
59+
target_compile_options(trinity-compile-option-interface
60+
INTERFACE
61+
-g3 -glldb)
62+
63+
message(STATUS "Clang: Debug-flags set (-g3 -glldb)")
64+
endif()
6165

6266
if(ASAN)
6367
target_compile_options(trinity-compile-option-interface

cmake/compiler/gcc/settings.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ if(WITH_WARNINGS)
4141
message(STATUS "GCC: All warnings enabled")
4242
endif()
4343

44-
target_compile_options(trinity-compile-option-interface
45-
INTERFACE
46-
$<$<OR:$<CONFIG:Debug,RelWithDebInfo>,$<BOOL:${WITH_COREDEBUG}>>:-ggdb3>)
44+
if(WITH_COREDEBUG)
45+
target_compile_options(trinity-compile-option-interface
46+
INTERFACE
47+
-ggdb3)
48+
49+
message(STATUS "GCC: Debug-flags set (-ggdb3)")
50+
endif()
4751

4852
if(ASAN)
4953
target_compile_options(trinity-compile-option-interface

0 commit comments

Comments
 (0)