1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Merge pull request #3979 from yoniko/Werror-fuzz

Fail on errors when building fuzzers
This commit is contained in:
Yann Collet
2024-03-21 10:41:34 -07:00
committed by GitHub
5 changed files with 25 additions and 18 deletions

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),