Skip to content

Commit

Permalink
chore: update Makefile for debug configuration
Browse files Browse the repository at this point in the history
- Remove inclusion of debug-helpers/debug.h from default CFLAGS.
- Add inclusion of debug-helpers/debug.h to CFLAGS only when DEBUG=1.
- Ensure CFLAGS includes -g for debugging when DEBUG=1.
  • Loading branch information
keiff3r committed Nov 7, 2024
1 parent 256eecc commit f560302
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ DEFINES += HAVE_BOLOS_APP_STACK_CANARY

DEFINES += IO_SEPROXYHAL_BUFFER_SIZE_B=300

# debugging helper functions and macros
CFLAGS += -include debug-helpers/debug.h

# DEFINES += HAVE_PRINT_STACK_POINTER

Expand All @@ -170,7 +168,8 @@ ifeq ($(DEBUG),10)
endif

ifeq ($(DEBUG),1)
CFLAGS += -g
# debugging helper functions and macros
CFLAGS += -include debug-helpers/debug.h -g
endif
# Needed to be able to include the definition of G_cx
INCLUDES_PATH += $(BOLOS_SDK)/lib_cxng/src
Expand Down

0 comments on commit f560302

Please sign in to comment.