From b1918f4c115fe89e813087504dc1edf8ad68c644 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Sat, 21 Nov 2015 19:40:34 +0800 Subject: [PATCH] rk: add gcc-wrapper Change-Id: Ie5025f30a747cd40e26eeb6ec939de28af899645 Signed-off-by: Tao Huang --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 31302f644c9d..ce8afa311d33 100644 --- a/Makefile +++ b/Makefile @@ -389,6 +389,12 @@ PYTHON2 = python2 PYTHON3 = python3 CHECK = sparse +# Use the wrapper for the compiler. This wrapper scans for new +# warnings and causes the build to stop upon encountering them. +ifneq ($(wildcard $(srctree)/scripts/gcc-wrapper.py),) +CC = $(srctree)/scripts/gcc-wrapper.py $(CROSS_COMPILE)gcc +endif + CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ -Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF) NOSTDINC_FLAGS =