mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
kbuild: Disable the gcc-wrapper with an environment variable
Sometimes we don't want to call the gcc-wrapper for various reasons, so allow build scripts to set a special environment variable to skip it. Change-Id: Ic0dedbadd3567812ed0216e7b30d8677ca14ba37 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
77a29a8c4d
commit
eb0d5beeff
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
|
@ -427,9 +427,13 @@ PYTHON3 = python3
|
|||
CHECK = sparse
|
||||
BASH = bash
|
||||
|
||||
ifndef DISABLE_WRAPPER
|
||||
# Use the wrapper for the compiler. This wrapper scans for new
|
||||
# warnings and causes the build to stop upon encountering them
|
||||
CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
|
||||
else
|
||||
CC = $(REAL_CC)
|
||||
endif
|
||||
|
||||
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
|
||||
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
|
||||
|
|
|
|||
Loading…
Reference in a new issue