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:
authorMarvin Scholz <epirat07@gmail.com>2018-09-27 16:12:17 +0300
committerMarvin Scholz <epirat07@gmail.com>2018-09-27 16:12:17 +0300
commit1abd783be7ba902290e0f906eb35679c3ece419b (patch)
tree57c89bf216a5f747dda9415e8229cf598b5dda73 /meson.build
parent7c43a766dbd5a7383ee7651665bed28b3dfa0df1 (diff)
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index d42b3a1..9b6854f 100644
--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,9 @@ if not cc.check_header('stdatomic.h')
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 @@ if host_machine.cpu_family().startswith('x86')
cdata.set('STACK_ALIGNMENT', 4)
endif
endif
-else
- stackalign_flag = []
- stackrealign_flag = []
endif
if host_machine.cpu_family().startswith('x86')