Build examples with the WERROR=1 flag passed to make, to ensure that we have a clean non-warning build for all examples on platforms that support the WERROR=1 flag

This commit is contained in:
Adam Dunkels 2015-09-26 11:18:54 +02:00 committed by Simon Duquennoy
parent 12a185f394
commit 8a6ae7c651
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ define dooneexample
@echo Building example $(3): $(1) for target $(2)
@((cd $(EXAMPLESDIR)/$(1); \
export STM32W_CPUREV=CC; \
make TARGET=$(2) clean && make TARGET=$(2)) > \
make TARGET=$(2) clean && make TARGET=$(2) WERROR=1) > \
$(3)-$(subst /,-,$(1))$(2).report 2>&1 && \
(echo $(1) $(2): OK | tee $(3)-$(subst /,-,$(1))$(2).summary) || \
(echo $(1) $(2): FAIL ಠ.ಠ | tee $(3)-$(subst /,-,$(1))$(2).summary ; \