Compress debug symbols to make libcvc5 smaller (#8743)
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>
Tue, 10 May 2022 08:18:15 +0000 (01:18 -0700)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 08:18:15 +0000 (08:18 +0000)
This adds `-gz` which compresses the debug symbols to make debug builds smaller. In my setup, `libcvc5.so` shrinks to about half its size from ~450MB to ~225MB.

CMakeLists.txt

index 83bd709921384cc2eeea95c2a1eaf7c275b7e698..c693cfe85b932b252b7152821a770acf3bbd29a3 100644 (file)
@@ -344,6 +344,7 @@ endif()
 
 if(ENABLE_DEBUG_SYMBOLS)
   add_check_c_cxx_flag("-ggdb3")
+  add_check_c_cxx_flag("-gz")
 endif()
 
 if(ENABLE_COMP_INC_TRACK)