Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-10-04 22:14:00 +0300
committerHenrik Gramner <gramner@twoorioles.com>2018-10-04 23:31:44 +0300
commit2d3e3ef02956b555c3184a993570d477da51ebd5 (patch)
tree76dc992c8de5b63713145733e56039fbb41b8945 /meson.build
parenta8d24ea168ba579152758552b5beb48d08b19b11 (diff)
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 4231b84..08e739b 100644
--- a/meson.build
+++ b/meson.build
@@ -259,6 +259,19 @@ if is_asm_enabled and host_machine.cpu_family().startswith('x86')
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'