1
0
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:
Jochen Hoenicke 2015-02-14 11:50:12 +01:00
parent 873c0ec11a
commit 2a28680d6e

View File

@ -9,7 +9,7 @@ OBJDUMP = $(PREFIX)objdump
FLASH = st-flash
OPENOCD = openocd
OPTFLAGS = -Os -g
OPTFLAGS = -Os -g -DNDEBUG
CFLAGS += $(OPTFLAGS) \
-W \