From: Frantisek Sumsal Date: Tue, 4 Jan 2022 11:51:44 +0000 (+0100) Subject: test: build fuzzers with --werror if set X-Git-Tag: v251-rc1~599 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=7847b548140776ed4e84b39df4074b96f811fc3a;p=systemd%2F.git test: build fuzzers with --werror if set to catch issues like systemd/systemd#21996. --- 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])