Merge pull request #2130 from jepler/nrf-debugflags

nrf: Makefile: sensible flags for debugging
This commit is contained in:
Scott Shawcroft 2019-09-20 10:18:00 -07:00 committed by GitHub
commit 19c6c96929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

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