build: Add stdcall alias/fixup when building x86

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2020-07-07 16:39:27 +01:00 committed by Hans-Kristian Arntzen
parent 0c59c30e08
commit 3fe9dd765d
1 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,13 @@ add_project_arguments(vkd3d_compiler.get_supported_arguments([
'-Wno-unused-parameter']),
language : 'c')
if cpu_family == 'x86'
add_global_link_arguments(vkd3d_compiler.get_supported_link_arguments([
'-Wl,--add-stdcall-alias',
'-Wl,--enable-stdcall-fixup']),
language : [ 'c', 'cpp' ])
endif
vkd3d_version = vcs_tag(
command : ['git', 'describe', '--dirty=+'],
input : 'vkd3d_version.c.in',
@ -93,4 +100,4 @@ if enable_extras
subdir('demos')
subdir('programs')
endif
endif