Merge pull request #12150 from jcarrano/compress-debuginfo
toolchain/cflags: enable dwarf compression (save 50% HDD)
This commit is contained in:
commit
3aa8bc0d70
@ -109,6 +109,7 @@ CFLAGS += -fdata-sections -ffunction-sections -fzero-initialized-in-bss
|
|||||||
|
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||||
|
|
||||||
ASFLAGS += --longcalls --text-section-literals
|
ASFLAGS += --longcalls --text-section-literals
|
||||||
|
|
||||||
|
|||||||
@ -165,3 +165,4 @@ endif
|
|||||||
OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
|
OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||||
|
|||||||
@ -53,3 +53,4 @@ endif
|
|||||||
|
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||||
|
|||||||
@ -69,3 +69,4 @@ export LINKFLAGS += -Wl,--gc-sections
|
|||||||
|
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||||
|
|||||||
@ -18,3 +18,4 @@ export LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -Wl,--gc-sections
|
|||||||
OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
|
OPTIONAL_CFLAGS_BLACKLIST += -fdiagnostics-color
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||||
|
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||||
|
|||||||
@ -38,6 +38,11 @@ endif
|
|||||||
# Forbid common symbols to prevent accidental aliasing.
|
# Forbid common symbols to prevent accidental aliasing.
|
||||||
CFLAGS += -fno-common
|
CFLAGS += -fno-common
|
||||||
|
|
||||||
|
# Compress debug info. This saves approximately 50% of disk usage.
|
||||||
|
# It has no effect if debugging information is not emitted, so it can be left
|
||||||
|
# on unconditionally.
|
||||||
|
OPTIONAL_CFLAGS += -gz
|
||||||
|
|
||||||
# Enable all default warnings and all extra warnings
|
# Enable all default warnings and all extra warnings
|
||||||
CFLAGS += -Wall -Wextra
|
CFLAGS += -Wall -Wextra
|
||||||
# Enable additional checks for printf/scanf format strings
|
# Enable additional checks for printf/scanf format strings
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user