summaryrefslogtreecommitdiff
path: root/test/fuzz/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzz/meson.build')
-rw-r--r--test/fuzz/meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build
index c0720b14ea..ccd66c0ccf 100644
--- a/test/fuzz/meson.build
+++ b/test/fuzz/meson.build
@@ -7,9 +7,10 @@ sanitize_address_undefined = custom_target(
project_source_root,
'@OUTPUT@',
'fuzzers',
- '-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@ @1@'.format(
+ '-Dfuzz-tests=true -Db_lundef=false -Db_sanitize=address,undefined --optimization=@0@ @1@ -Dc_args=@2@ -Dcpp_args=@2@'.format(
get_option('optimization'),
- get_option('werror') ? '--werror' : ''
+ get_option('werror') ? '--werror' : '',
+ '-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION'
),
' '.join(cc.cmd_array()),
cxx_cmd])