Merge pull request #2130 from jepler/nrf-debugflags
nrf: Makefile: sensible flags for debugging
This commit is contained in:
commit
19c6c96929
|
@ -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