File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,13 +55,9 @@ if(WITH_WARNINGS)
5555 message (STATUS "Clang: All warnings enabled" )
5656endif ()
5757
58- if (WITH_COREDEBUG)
59- target_compile_options (trinity-compile-option-interface
60- INTERFACE
61- -g3 )
62-
63- message (STATUS "Clang: Debug-flags set (-g3)" )
64- endif ()
58+ target_compile_options (trinity-compile-option-interface
59+ INTERFACE
60+ $<$<OR :$<CONFIG :Debug ,RelWithDebInfo >,$<BOOL :${WITH_COREDEBUG} >>:-g3 -glldb >)
6561
6662if (ASAN)
6763 target_compile_options (trinity-compile-option-interface
Original file line number Diff line number Diff line change @@ -41,13 +41,9 @@ if(WITH_WARNINGS)
4141 message (STATUS "GCC: All warnings enabled" )
4242endif ()
4343
44- if (WITH_COREDEBUG)
45- target_compile_options (trinity-compile-option-interface
46- INTERFACE
47- -g3 )
48-
49- message (STATUS "GCC: Debug-flags set (-g3)" )
50- endif ()
44+ target_compile_options (trinity-compile-option-interface
45+ INTERFACE
46+ $<$<OR :$<CONFIG :Debug ,RelWithDebInfo >,$<BOOL :${WITH_COREDEBUG} >>:-ggdb3 >)
5147
5248if (ASAN)
5349 target_compile_options (trinity-compile-option-interface
You can’t perform that action at this time.
0 commit comments