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:
jepler 2019-09-08 21:06:21 -05:00
parent bd7b03fc7e
commit e890bc8efe

View File

@ -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