Reduce file size by only including relevant debug symbols for stacktraces.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
3742e07b03
commit
207d4bd799
|
@ -16,9 +16,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_compile_options(-fconcepts)
|
add_compile_options(-fconcepts)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT WINDOWS)
|
if (CMAKE_BUILD_TYPE MATCHES Release AND NOT WINDOWS)
|
||||||
# Include debug symbols in all linux builds
|
# 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 ()
|
endif ()
|
||||||
|
|
||||||
include(CmakeConanSetup.cmake)
|
include(CmakeConanSetup.cmake)
|
||||||
|
|
Loading…
Reference in New Issue