shithub: dav1d

Download patch

ref: 16ce8b1a34cd868499a384faaad111d15d12a02e
parent: d4fcb70ddfa69808518b38c8de10ec61b145d47a
author: Janne Grunau <janne-vlc@jannau.net>
date: Thu Nov 1 13:24:32 EDT 2018

meson: prevent memory sanitizer builds with asm

For example in dav1d_cdef_brow_{8,10}bpc memory sanitizer can not track
that variance is initilized by dsp->cdef.dir() it is implemented by in
asm.

--- a/meson.build
+++ b/meson.build
@@ -66,6 +66,9 @@
      host_machine.cpu_family().startswith('arm'))
 cdata.set10('HAVE_ASM', is_asm_enabled)
 
+if is_asm_enabled and get_option('b_sanitize') == 'memory'
+    error('asm causes false positive with memory sanitizer. Use \'-Dbuild_asm=false\'.')
+endif
 
 
 #