shithub: dav1d

Download patch

ref: 2d3e3ef02956b555c3184a993570d477da51ebd5
parent: a8d24ea168ba579152758552b5beb48d08b19b11
author: Janne Grunau <[email protected]>
date: Thu Oct 4 17:14:00 EDT 2018

meson: error on nasm < 2.13

The x86 asm requires nasm and an error from meson is easier to
understand than cryptic errors from nasm.

--- a/meson.build
+++ b/meson.build
@@ -259,6 +259,19 @@
 
     nasm = find_program('nasm')
 
+    # check NASM version
+    if nasm.found()
+        nasm_r = run_command(nasm, '-v')
+        out = nasm_r.stdout().strip().split()
+        if out[1].to_lower() == 'version'
+            if out[2].version_compare('<2.13')
+                error('nasm 2.13 or later is required, found nasm @0@'.format(out[2]))
+            endif
+        else
+            error('unexpected nasm version string: @0@'.format(nasm_r.stdout()))
+        endif
+    endif
+
     if host_machine.system() == 'windows'
         nasm_format = 'win'
     elif host_machine.system() == 'darwin'