Reduce file size by only including relevant debug symbols for stacktraces.

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-12-31 13:51:43 +01:00
parent 3742e07b03
commit 207d4bd799
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 2 deletions

View File

@ -16,9 +16,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-fconcepts)
endif ()
if (NOT WINDOWS)
if (CMAKE_BUILD_TYPE MATCHES Release AND NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
message("Including debug symbols")
add_compile_options(-g -gline-tables-only)
endif ()
include(CmakeConanSetup.cmake)