shithub: dav1d

Download patch

ref: 1abd783be7ba902290e0f906eb35679c3ece419b
parent: 7c43a766dbd5a7383ee7651665bed28b3dfa0df1
author: Marvin Scholz <epirat07@gmail.com>
date: Thu Sep 27 11:12:17 EDT 2018

Build: Fix configure fallback for stack alignment

This is a fix for

    ERROR:  Unknown variable "stackrealign_flag"

when configuring for x86 on compilers that do not support any of the
checked stackalign flags.

--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,9 @@
     error('Atomics not supported')
 endif
 
+stackalign_flag = []
+stackrealign_flag = []
+
 if host_machine.cpu_family().startswith('x86')
     if cc.has_argument('-mpreferred-stack-boundary=5')
         stackalign_flag = ['-mpreferred-stack-boundary=5']
@@ -95,9 +98,6 @@
             cdata.set('STACK_ALIGNMENT', 4)
         endif
     endif
-else
-    stackalign_flag = []
-    stackrealign_flag = []
 endif
 
 if host_machine.cpu_family().startswith('x86')