Skip to content

Commit e890bc8

Browse files
committed
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.
1 parent bd7b03f commit e890bc8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ports/nrf/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ INC += -I../../supervisor/shared/usb
9090

9191
#Debugging/Optimization
9292
ifeq ($(DEBUG), 1)
93-
CFLAGS += -ggdb
94-
# You may want to enable these flags to make setting breakpoints easier.
95-
CFLAGS += -fno-inline -fno-ipa-sra
93+
CFLAGS += -ggdb3 -Og
9694
else
9795
CFLAGS += -Os -DNDEBUG
9896
CFLAGS += -flto -flto-partition=none

0 commit comments

Comments
 (0)