nrf: Makefile: sensible flags for debugging
This enables the highest level of debug symbols, and all optimizations except lto that do NOT interfere with debugging, in the view of the gcc maintainers.
This commit is contained in:
parent
bd7b03fc7e
commit
e890bc8efe
@ -90,9 +90,7 @@ INC += -I../../supervisor/shared/usb
|
||||
|
||||
#Debugging/Optimization
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -ggdb
|
||||
# You may want to enable these flags to make setting breakpoints easier.
|
||||
CFLAGS += -fno-inline -fno-ipa-sra
|
||||
CFLAGS += -ggdb3 -Og
|
||||
else
|
||||
CFLAGS += -Os -DNDEBUG
|
||||
CFLAGS += -flto -flto-partition=none
|
||||
|
Loading…
Reference in New Issue
Block a user