meson: pass the optimization level to the fuzzer build

This commit is contained in:
Frantisek Sumsal 2020-05-22 14:28:17 +02:00
parent e9158b254c
commit 87666b31f9
1 changed files with 2 additions and 1 deletions

View File

@ -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])