diff options
author | Martin Storsjö <martin@martin.st> | 2019-02-13 23:06:17 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2019-02-19 16:28:18 +0300 |
commit | 6ceb29d2a6cabf5b9ee747f8286c7ea02080fe8c (patch) | |
tree | 374d5c404c5781f413d3adbcc2e716f74be5228f /meson.build | |
parent | 9caabc7bda6d22c5bd1c0ea2b8e6c770654eb911 (diff) |
meson: Add an undocumented option for overriding stack alignment
This is intended only for use in CI testing.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index a7867a9..ce56a86 100644 --- a/meson.build +++ b/meson.build @@ -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'] |