Makefile: Do not use gcc-wrapper.py

Reasons:
1. Its still using python2 which is deprecated on some host except if you compiled python2 by your own
2. -Werror cflags exist, why even bother?
3. Using this may waste memory

Signed-off-by: rsuntk <rissu.ntk@gmail.com>
This commit is contained in:
rsuntk 2025-03-10 15:53:20 +00:00
parent 44ef04814e
commit 3ecf96a22d

View file

@ -388,7 +388,7 @@ READELF = llvm-readelf
OBJSIZE = llvm-size
STRIP = llvm-strip
else
REAL_CC = clang
CC = clang
LD = ld.lld
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
@ -410,10 +410,6 @@ 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
CC = $(PYTHON) $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
NOSTDINC_FLAGS =