Always generate debug symbols
The debug symbols are only part of the generated ELF files, they are stripped from the .bin and .hex files. So there should be no disadvantage of always generating it. Before: 52456 Pinecil_EN.bin 81700 Pinecil_EN.elf 140759 Pinecil_EN.elf.map 147554 Pinecil_EN.hex After: 52456 Pinecil_EN.bin 650556 Pinecil_EN.elf 191974 Pinecil_EN.elf.map 147554 Pinecil_EN.hex
This commit is contained in:
@@ -132,12 +132,9 @@ OPTIM=-Os -flto -finline-small-functions -findirect-inlining -fdiagnostics-color
|
||||
# global defines ---------------------------------------------------------------
|
||||
GLOBAL_DEFINES += $(DEV_GLOBAL_DEFS) -D USE_RTOS_SYSTICK -D MODEL_$(model) -D VECT_TAB_OFFSET=$(bootldr_size)U
|
||||
|
||||
# Without debug code
|
||||
DEBUG=
|
||||
DEBUG=-g3
|
||||
ifdef swd_enable
|
||||
GLOBAL_DEFINES += -DSWD_ENABLE
|
||||
# Enable debug code generation
|
||||
DEBUG=-g
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user