Commit a3217134 authored by Janne Grunau's avatar Janne Grunau

do not build the allocation fail fuzzer when lto is enabled

Link time optimization and '--wrap' seems to not work together.
Fixes #219.
parent c0501f1f
Pipeline #3474 passed with stages
in 5 minutes and 18 seconds
...@@ -125,7 +125,7 @@ dav1d_fuzzer_mt = executable('dav1d_fuzzer_mt', ...@@ -125,7 +125,7 @@ dav1d_fuzzer_mt = executable('dav1d_fuzzer_mt',
) )
if (cc.has_function('posix_memalign', prefix : '#include <stdlib.h>', args : test_args) and if (cc.has_function('posix_memalign', prefix : '#include <stdlib.h>', args : test_args) and
cc.has_link_argument('-Wl,-wrap,malloc')) cc.has_link_argument('-Wl,-wrap,malloc') and not get_option('b_lto'))
alloc_fail = shared_library('alloc_fail', alloc_fail = shared_library('alloc_fail',
files('libfuzzer/alloc_fail.c'), files('libfuzzer/alloc_fail.c'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment