Skip to content
Snippets Groups Projects
Unverified Commit ba463179 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #8029 from smlng/enh/make/develhelp

make: cleanup and centralise DEVELHELP setting
parents 6b661bef a05032f2
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,14 @@ endif ...@@ -111,6 +111,14 @@ endif
QQ= QQ=
# 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:
DEVELHELP ?= 0
ifeq ($(DEVELHELP),1)
CFLAGS += -DDEVELHELP
endif
# Fail on warnings. Can be overridden by `make WERROR=0`. # Fail on warnings. Can be overridden by `make WERROR=0`.
WERROR ?= 1 WERROR ?= 1
export WERROR export WERROR
......
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
/** /**
* @def DEVELHELP * @def DEVELHELP
* @brief This global macro activates some behavior that helps you while * @brief This global macro activates functionality to help developers.
* developing but is otherwise optimized out. *
* Additional code parts such as (extensive) debug output and sanity
* checks using assertions. To activate it set environment variable
* `DEVELHELP=1`, or disable explicitly with `DEVELHELP=0`.
*/ */
#if DOXYGEN #if DOXYGEN
# define DEVELHELP # define DEVELHELP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment