1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-03 16:29:15 +01:00

[build] Use -mpreferred-stack-boundary=2 on 32-bit x86

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
Vasiliy Stelmachenok 2025-01-21 20:42:42 +03:00 committed by Philip Rebohle
parent a3ba8fb4dc
commit 84ccad3528

View File

@ -80,12 +80,16 @@ if platform == 'windows'
]
endif
# Enable stdcall fixup on 32-bit
if cpu_family == 'x86'
# Enable stdcall fixup on 32-bit
link_args += [
'-Wl,--enable-stdcall-fixup',
'-Wl,--kill-at',
]
# Fix stack alignment issues with mingw on 32-bit
compiler_args += [
'-mpreferred-stack-boundary=2'
]
endif
else
# setup file alignment + enable PDB output for MSVC builds