mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
Disable assertion checking
The trezor-crypto has some assertions, which are enabled unless compiled with -DNDEBUG. This does not make much sense for the Trezor as could not write the assertion errors to stderr anyway. This simple patch removes the dependency to assert, printf, etc. It saves about 11kb flash and 2.2kb ram.
This commit is contained in:
parent
873c0ec11a
commit
2a28680d6e
@ -9,7 +9,7 @@ OBJDUMP = $(PREFIX)objdump
|
||||
FLASH = st-flash
|
||||
OPENOCD = openocd
|
||||
|
||||
OPTFLAGS = -Os -g
|
||||
OPTFLAGS = -Os -g -DNDEBUG
|
||||
|
||||
CFLAGS += $(OPTFLAGS) \
|
||||
-W \
|
||||
|
Loading…
Reference in New Issue
Block a user