mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[CMAKE] Disable debugging related GCC flags in release mode.
svn path=/trunk/; revision=68148
This commit is contained in:
parent
74c80a51dd
commit
983d1bf043
1 changed files with 8 additions and 6 deletions
|
@ -87,12 +87,14 @@ if((NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (NOT SEPARATE_DBG))
|
|||
endif()
|
||||
|
||||
# Debugging
|
||||
if(SEPARATE_DBG)
|
||||
add_compile_flags("-gdwarf-2 -ggdb")
|
||||
else()
|
||||
add_compile_flags("-gdwarf-2 -gstrict-dwarf")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_flags("-femit-struct-debug-detailed=none -feliminate-unused-debug-symbols")
|
||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
if(SEPARATE_DBG)
|
||||
add_compile_flags("-gdwarf-2 -ggdb")
|
||||
else()
|
||||
add_compile_flags("-gdwarf-2 -gstrict-dwarf")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_flags("-femit-struct-debug-detailed=none -feliminate-unused-debug-symbols")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue