Skip to content

Commit

Permalink
Allow debugging symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Apr 25, 2024
1 parent bced28e commit dc0b784
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ifeq ($(BOLOS_SDK),)
$(error BOLOS_SDK is not set)
endif

DEBUG:=0

MY_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.installer_script
Expand Down Expand Up @@ -80,7 +82,12 @@ endif

# Building Rust
CC := $(CLANGPATH)clang

ifeq ($(DEBUG),1)
CFLAGS += -O3 -Os -Wno-unknown-pragmas -Wno-unused-parameter -g
else
CFLAGS += -O3 -Os -Wno-unknown-pragmas -Wno-unused-parameter
endif

AS := $(GCCPATH)arm-none-eabi-gcc
AFLAGS +=
Expand Down

0 comments on commit dc0b784

Please sign in to comment.