test: build fuzzers with --werror if set

to catch issues like systemd/systemd#21996.
This commit is contained in:
Frantisek Sumsal
2022-01-04 12:51:44 +01:00
committed by Evgeny Vereshchagin
parent 5377ad4ea4
commit 7847b54814

View File

@@ -7,7 +7,10 @@ sanitize_address_undefined = custom_target(
project_source_root,
'@OUTPUT@',
'fuzzers',
'-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@'.format(get_option('optimization')),
'-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@ @1@'.format(
get_option('optimization'),
get_option('werror') ? '--werror' : ''
),
' '.join(cc.cmd_array()),
cxx_cmd])