Commit 6ceb29d2 authored by Martin Storsjö's avatar Martin Storsjö Committed by Henrik Gramner

meson: Add an undocumented option for overriding stack alignment

This is intended only for use in CI testing.
parent 9caabc7b
......@@ -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']
......
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment