1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

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

make: cleanup and centralise DEVELHELP setting
This commit is contained in:
Martine Lenders 2017-11-23 18:37:40 +01:00 committed by GitHub
commit ba4631798c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -111,6 +111,14 @@ endif
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`.
WERROR ?= 1
export WERROR

View File

@ -9,8 +9,11 @@
/**
* @def DEVELHELP
* @brief This global macro activates some behavior that helps you while
* developing but is otherwise optimized out.
* @brief This global macro activates functionality to help developers.
*
* 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
# define DEVELHELP