Work on reducing file sizes, by adding fewer debug symbols.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-12-31 13:48:52 +01:00
parent b3c9c95345
commit 28ba531a47
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 3 deletions

View File

@ -23,10 +23,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_link_options(-fuse-ld=lld) add_link_options(-fuse-ld=lld)
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")
endif() add_compile_options(-g -gline-tables-only)
endif ()
# Grab all cpp and hpp files in our source directories. # Grab all cpp and hpp files in our source directories.
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp") file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp")