From 87666b31f9b8546599f0426cfebc4beb4cd9a0ba Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 22 May 2020 14:28:17 +0200 Subject: [PATCH] meson: pass the optimization level to the fuzzer build --- test/fuzz/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build index 7d61e270fd..b0305bdd0e 100644 --- a/test/fuzz/meson.build +++ b/test/fuzz/meson.build @@ -7,7 +7,8 @@ sanitize_address_undefined = custom_target( project_source_root, '@OUTPUT@', 'fuzzers', - '-Db_lundef=false -Db_sanitize=address,undefined', + '-Db_lundef=false -Db_sanitize=address,undefined ' + + '--optimization=@0@'.format(get_option('optimization')), ' '.join(cc.cmd_array()), cxx_cmd])