Skip to content

Commit

Permalink
fix: always include debug helpers header
Browse files Browse the repository at this point in the history
- Move debug-helpers/debug.h inclusion out of DEBUG=1 condition
- Keep -g flag only for debug builds
  • Loading branch information
keiff3r committed Nov 7, 2024
1 parent 3443fb6 commit a7d8e22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ 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 @@ -168,8 +170,7 @@ ifeq ($(DEBUG),10)
endif

ifeq ($(DEBUG),1)
# debugging helper functions and macros
CFLAGS += -include debug-helpers/debug.h -g
CFLAGS += -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 a7d8e22

Please sign in to comment.