Skip to content

Commit a321713

Browse files
committed
do not build the allocation fail fuzzer when lto is enabled
Link time optimization and '--wrap' seems to not work together. Fixes #219.
1 parent c0501f1 commit a321713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ dav1d_fuzzer_mt = executable('dav1d_fuzzer_mt',
125125
)
126126

127127
if (cc.has_function('posix_memalign', prefix : '#include <stdlib.h>', args : test_args) and
128-
cc.has_link_argument('-Wl,-wrap,malloc'))
128+
cc.has_link_argument('-Wl,-wrap,malloc') and not get_option('b_lto'))
129129

130130
alloc_fail = shared_library('alloc_fail',
131131
files('libfuzzer/alloc_fail.c'),

0 commit comments

Comments
 (0)