shithub: dav1d

Download patch

ref: 725f37684ddf51c9e8e35dbce856ce9ab164cf17
parent: f116e076aef24eaf8b89917339afed7b7d0d6566
author: Janne Grunau <janne-vlc@jannau.net>
date: Thu Jul 9 19:04:27 EDT 2020

meson: disable asm for x32 ABI

Fixes #345.

--- a/meson.build
+++ b/meson.build
@@ -62,7 +62,8 @@
 
 # ASM option
 is_asm_enabled = (get_option('enable_asm') == true and
-    (host_machine.cpu_family().startswith('x86') or
+    (host_machine.cpu_family() == 'x86' or
+     (host_machine.cpu_family() == 'x86_64' and cc.get_define('__ILP32__') == '') or
      host_machine.cpu_family() == 'aarch64'      or
      host_machine.cpu_family().startswith('arm') or
      host_machine.cpu() == 'ppc64le'))