mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
vulkan: Fix source list for vulkan_wsi on Windows
I don't think link_whole works right for VS project generation, but MSVC doesn't support GCC weak functions anyway, so work around it. Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9121>
This commit is contained in:
parent
bc8e770856
commit
10244fe76e
1 changed files with 13 additions and 6 deletions
|
|
@ -99,9 +99,16 @@ idep_vulkan_util_headers = declare_dependency(
|
|||
include_directories : include_directories('.')
|
||||
)
|
||||
|
||||
idep_vulkan_util = declare_dependency(
|
||||
# Instruct users of this library to link with --whole-archive. Otherwise,
|
||||
# our weak function overloads may not resolve properly.
|
||||
link_whole : libvulkan_util,
|
||||
dependencies : idep_vulkan_util_headers
|
||||
)
|
||||
if with_platform_windows
|
||||
idep_vulkan_util = declare_dependency(
|
||||
link_with : libvulkan_util,
|
||||
dependencies : idep_vulkan_util_headers
|
||||
)
|
||||
else
|
||||
idep_vulkan_util = declare_dependency(
|
||||
# Instruct users of this library to link with --whole-archive. Otherwise,
|
||||
# our weak function overloads may not resolve properly.
|
||||
link_whole : libvulkan_util,
|
||||
dependencies : idep_vulkan_util_headers
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue