mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
rk: Makefile: add gcc-wrapper
Change-Id: Ie5025f30a747cd40e26eeb6ec939de28af899645 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
82d9ddc0c9
commit
c2482146d1
8
Makefile
8
Makefile
|
|
@ -465,6 +465,14 @@ LZ4 = lz4
|
||||||
XZ = xz
|
XZ = xz
|
||||||
ZSTD = zstd
|
ZSTD = zstd
|
||||||
|
|
||||||
|
# Use the wrapper for the compiler. This wrapper scans for new
|
||||||
|
# warnings and causes the build to stop upon encountering them.
|
||||||
|
ifeq ($(CC),$(CROSS_COMPILE)gcc)
|
||||||
|
ifneq ($(wildcard $(srctree)/scripts/gcc-wrapper.py),)
|
||||||
|
CC = $(srctree)/scripts/gcc-wrapper.py $(CROSS_COMPILE)gcc
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
|
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
|
||||||
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
|
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
|
||||||
NOSTDINC_FLAGS :=
|
NOSTDINC_FLAGS :=
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user