shithub: dav1d

Download patch

ref: b3c522d5c060b98bdd6a164df95c891cd7f6b985
parent: 9f77d9c3e332c169acdfe904768eebdef7c5827f
author: Marvin Scholz <epirat07@gmail.com>
date: Mon Nov 19 12:10:04 EST 2018

build: Only add libdav1d_nasm_objs if needed

Current versions of meson have a bug that causes the need to add
the nasm generated objects to checkasm, even though this should
already be covered by the extract_all_objects() for libdav1d.
Meson versions >= 0.48.999 (that is, Meson 0.49 and development
versions states of that on git) fixed this issue so now adding
this is not longer needed.
Adding it regardless would actually cause an error because of
symbols being present twice.

--- a/tests/meson.build
+++ b/tests/meson.build
@@ -67,10 +67,15 @@
 
     m_lib = cc.find_library('m', required: false)
 
+    libdav1d_nasm_objs_if_needed = []
+    if meson.version().version_compare('< 0.48.999')
+        libdav1d_nasm_objs_if_needed = libdav1d_nasm_objs
+    endif
+
     checkasm = executable('checkasm',
         checkasm_sources,
         checkasm_nasm_objs,
-        libdav1d_nasm_objs,
+        libdav1d_nasm_objs_if_needed,
 
         objects: [
             checkasm_bitdepth_objs,