shithub: dav1d

Download patch

ref: a32171340ee1988aa6aa4e8a8951fa8951a85169
parent: c0501f1f4f3947510b294dd52d5be76d1e4448a2
author: Janne Grunau <janne-vlc@jannau.net>
date: Tue Dec 11 08:48:28 EST 2018

do not build the allocation fail fuzzer when lto is enabled

Link time optimization and '--wrap' seems to not work together.
Fixes #219.

--- a/tests/meson.build
+++ b/tests/meson.build
@@ -125,7 +125,7 @@
     )
 
 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'),