mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
Makefile.include: fail by default when errors are expected
The build can still be forced by adding WERROR=0 to the command line
This commit is contained in:
parent
8a1e78bf4d
commit
6ff2b6408a
@ -786,7 +786,12 @@ ifneq (, $(filter all flash, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all)))
|
|||||||
$(shell $(COLOR_ECHO) "\n$(COLOR_YELLOW)EXPECT undesired behaviour!$(COLOR_RESET)" 1>&2)
|
$(shell $(COLOR_ECHO) "\n$(COLOR_YELLOW)EXPECT undesired behaviour!$(COLOR_RESET)" 1>&2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Fail by default when errors are expected
|
||||||
|
CONTINUE_ON_EXPECTED_ERRORS ?= 0
|
||||||
ifneq (, $(EXPECT_ERRORS))
|
ifneq (, $(EXPECT_ERRORS))
|
||||||
|
ifneq (1,$(CONTINUE_ON_EXPECTED_ERRORS))
|
||||||
|
$(error You can let the build continue on expected errors by setting CONTINUE_ON_EXPECTED_ERRORS=1 to the command line)
|
||||||
|
endif
|
||||||
$(shell $(COLOR_ECHO) "\n\n$(COLOR_RED)EXPECT ERRORS!$(COLOR_RESET)\n\n" 1>&2)
|
$(shell $(COLOR_ECHO) "\n\n$(COLOR_RED)EXPECT ERRORS!$(COLOR_RESET)\n\n" 1>&2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user