修改scripts/gcc-wrapper.py文件,将interpret_warning(line)一行注释掉
kernel\msm-4.9\scripts\gcc-wrapper.py
def run_gcc():
args = sys.argv[1:]
# Look for -o
try:
i = args.index('-o')
global ofile
ofile = args[i+1]
except (ValueError, IndexError):
pass
compiler = sys.argv[0]
try:
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
for line in proc.stderr:
print line
#print line,
##interpret_warning(line) ###注释掉这行即可
result = proc.wait()
except OSError as e:
jinron10
发布了87 篇原创文章 · 获赞 10 · 访问量 4万+
私信
关注