diff options
author | Janne Grunau <janne-vlc@jannau.net> | 2018-12-11 16:48:28 +0300 |
---|---|---|
committer | Janne Grunau <janne-vlc@jannau.net> | 2018-12-11 16:48:28 +0300 |
commit | a32171340ee1988aa6aa4e8a8951fa8951a85169 (patch) | |
tree | 31b297aaa0d9b70f8179c34553a598460d527490 /tests/meson.build | |
parent | c0501f1f4f3947510b294dd52d5be76d1e4448a2 (diff) |
do not build the allocation fail fuzzer when lto is enabled
Link time optimization and '--wrap' seems to not work together.
Fixes #219.
Diffstat (limited to 'tests/meson.build')
-rw-r--r-- | tests/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 4d8b53c..9d8b304 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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 - 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', files('libfuzzer/alloc_fail.c'), |