Commit 78f043d
committed
cmake: compress DWARF debug sections with -gz in debug builds
Debug info dominates the size of these binaries (template-heavy C++;
TestAccessPoint was ~97% DWARF). Enable -gz=zlib for GNU/Clang in the
Debug and RelWithDebInfo configs, at both compile and link, to compress
the .debug_* sections.
This is transparent to gdb/lldb/readelf/addr2line and a no-op for builds
without -g (e.g. Release). TestAccessPoint drops 330 MB -> 89 MB (-73%).
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent e921e5d commit 78f043d
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
183 | 202 | | |
184 | 203 | | |
185 | 204 | | |
| |||
0 commit comments