Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
6ceb29d2
Commit
6ceb29d2
authored
Feb 13, 2019
by
Martin Storsjö
Committed by
Henrik Gramner
Feb 19, 2019
Browse files
meson: Add an undocumented option for overriding stack alignment
This is intended only for use in CI testing.
parent
9caabc7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
6ceb29d2
...
...
@@ -214,7 +214,9 @@ stackalign_flag = []
stackrealign_flag
=
[]
if
host_machine
.
cpu_family
().
startswith
(
'x86'
)
if
host_machine
.
cpu_family
()
==
'x86_64'
if
get_option
(
'stack_alignment'
)
>
0
stack_alignment
=
get_option
(
'stack_alignment'
)
elif
host_machine
.
cpu_family
()
==
'x86_64'
if
cc
.
has_argument
(
'-mpreferred-stack-boundary=5'
)
stackalign_flag
=
[
'-mpreferred-stack-boundary=5'
]
stackrealign_flag
=
[
'-mincoming-stack-boundary=4'
]
...
...
meson_options.txt
View file @
6ceb29d2
...
...
@@ -35,3 +35,7 @@ option('fuzzing_engine',
choices
:
[
'none'
,
'libfuzzer'
,
'oss-fuzz'
],
value
:
'none'
,
description
:
'Select the fuzzing engine'
)
option
(
'stack_alignment'
,
type
:
'integer'
,
value
:
0
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment