mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Fail on errors when building fuzzers
Fails on errors when building fuzzers with `fuzz.py` (adds `Werror`). Currently allows `declaration-after-statement`, `c++-compat` and `deprecated` as they are abundant in code (some fixes to `declaration-after-statement` are presented in this commit).
This commit is contained in:
@ -405,7 +405,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),
|
||||
|
Reference in New Issue
Block a user