shithub: dav1d

Download patch

ref: 0b7be94f2e7e5ac46351328734739f1b076712ac
parent: dc2e1783393b26c1a09015b885ceb8bf1cbda4b3
author: Marvin Scholz <[email protected]>
date: Sun Sep 23 12:06:38 EDT 2018

Build: Fix meson build with meson 0.47.x

Once meson 0.48 is required, this should be changed back to use the
optimization option instead. (See #1)

--- a/meson.build
+++ b/meson.build
@@ -119,7 +119,8 @@
     cdata.set('HAVE_ALIGNED_MALLOC', 1)
 endif
 
-if get_option('optimization') != '0'
+if (get_option('buildtype') != 'debug' and
+    get_option('buildtype') != 'plain')
     add_project_arguments('-fomit-frame-pointer', '-ffast-math',
         language: 'c')
 endif