]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: pass the optimization level to the fuzzer build 15886/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 22 May 2020 12:28:17 +0000 (14:28 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 23 May 2020 12:19:25 +0000 (14:19 +0200)
test/fuzz/meson.build

index 7d61e270fd9643c86b7eecb41f986e30114a55fd..b0305bdd0ec05457cb58851ce25943d552f27ea9 100644 (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])