Merge pull request #3979 from yoniko/Werror-fuzz

Fail on errors when building fuzzers
This commit is contained in:
Yann Collet authored and GitHub committed 2024-03-21 10:41:34 -07:00
commit 1d3f664fce
5 files changed
+25 -18

No files matched your search

+6 -1
View File
@@ -407,7 +407,12 @@ def build(args):
cxxflags = shlex.split(args.cxxflags)
mflags = shlex.split(args.mflags)
# Flags to be added to both cflags and cxxflags
common_flags = []
common_flags = [
'-Werror',
'-Wno-error=declaration-after-statement',
'-Wno-error=c++-compat',
'-Wno-error=deprecated' # C files are sometimes compiled with CXX
]
cppflags += [
'-DDEBUGLEVEL={}'.format(args.debug),