mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
build system: add VERBOSE_ASSERT flag
Add a compile-time convenience variable to enable verbose asserts.
This commit is contained in:
parent
004b93edca
commit
9267d9dd61
@ -284,6 +284,16 @@ else
|
||||
Q=
|
||||
endif
|
||||
|
||||
# Set this to 1 to enable pretty-printing the assert location in addition
|
||||
# to the address of the failing assert.
|
||||
# This saves you to resolve the address manually with addr2line at the cost
|
||||
# of greater ROM consumption.
|
||||
VERBOSE_ASSERT ?= 0
|
||||
ifeq ($(VERBOSE_ASSERT),1)
|
||||
CFLAGS += -DDEBUG_ASSERT_VERBOSE
|
||||
DEVELHELP := 1
|
||||
endif
|
||||
|
||||
# Set this to 1 to enable code in RIOT that does safety checking
|
||||
# which is not needed in a production environment but helps in the
|
||||
# development process:
|
||||
|
Loading…
Reference in New Issue
Block a user