diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build index 30e26b09cf..706bdb329b 100644 --- a/test/fuzz/meson.build +++ b/test/fuzz/meson.build @@ -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])